#include <socket.h>
Inheritance diagram for UDPReceive:

Public Member Functions | |
| int | receive (void *buf, size_t len) |
| Receive a data packet from the connected peer host. | |
| bool | isInputReady (timeout_t timeout=TIMEOUT_INF) |
| See if input queue has data packets available. | |
Protected Member Functions | |
| UDPReceive (const InetAddress &bind, tpport_t port) | |
| Create a UDP receiver, bind it to a specific interface and port address so that other UDP sockets on remote machines (or the same host) may find and send UDP messages to it, and associate it with a given port on a peer host. | |
| Error | connect (const InetHostAddress &host, tpport_t port) |
| Associate this socket with a specified peer host. | |
| bool | isPendingReceive (timeout_t timeout) |
| Check for pending data. | |
| void | endReceiver (void) |
| End receiver. | |
| SOCKET | getReceiver (void) const |
| Error | setRouting (bool enable) |
| Error | setMulticast (bool enable) |
| Error | join (const InetMcastAddress &ia) |
| Error | drop (const InetMcastAddress &ia) |
This class is used exclusivily to derive the UDPDuplex.
|
||||||||||||
|
Create a UDP receiver, bind it to a specific interface and port address so that other UDP sockets on remote machines (or the same host) may find and send UDP messages to it, and associate it with a given port on a peer host. On failure to bind, an exception is thrown.
|
|
||||||||||||
|
Associate this socket with a specified peer host. The port number from the constructor will be used. All UDP packets will be sent received from the specified host.
Reimplemented in UDPDuplex. |
|
|
Reimplemented from Socket. |
|
|
End receiver.
|
|
|
|
|
|
See if input queue has data packets available.
|
|
|
Check for pending data.
|
|
|
Reimplemented from Socket. |
|
||||||||||||
|
Receive a data packet from the connected peer host.
Reimplemented from UDPSocket. |
|
|
Reimplemented from Socket. |
|
|
Reimplemented from Socket. |
1.3.5