#include <socket.h>
Inheritance diagram for UDPReceive::
Public Methods | |
int | Receive (void *buf, size_t len) |
Receive a data packet from the connected peer host. More... | |
bool | isInputReady (timeout_t timeout=TIMEOUT_INF) |
See if input queue has data packets available. More... | |
Protected Methods | |
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. More... | |
sockerror_t | Connect (const InetHostAddress &host, tpport_t port) |
Associate this socket with a specified peer host. More... | |
sockerror_t | Disconnect (void) |
Disassociate this socket from any host connection. More... | |
bool | isPendingReceive (timeout_t timeout) |
Check for pending data. More... | |
void | endReceiver (void) |
End receiver. More... | |
SOCKET | getReceiver (void) |
sockerror_t | setRouting (bool enable) |
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. |
|
Disassociate this socket from any host connection. No data should be read or written until a connection is established. Reimplemented in UDPDuplex. |
|
Receive a data packet from the connected peer host.
|
|
End receiver.
|
|
|
|
See if input queue has data packets available.
|
|
Check for pending data.
|
|
Reimplemented from Socket. |