#include <socket.h>
Inheritance diagram for UDPTransmit::
Public Methods | |
int | Transmit (const char *buffer, size_t len) |
Transmit "send" to use "connected" send rather than sendto. More... | |
bool | isOutputReady (unsigned long timeout=0l) |
See if output queue is empty for sending more packets. More... | |
sockerror_t | setRouting (bool enable) |
sockerror_t | setTypeOfService (socktos_t tos) |
sockerror_t | setBroadcast (bool enable) |
Protected Methods | |
UDPTransmit () | |
Create a UDP transmitter. More... | |
UDPTransmit (const InetAddress &bind, tpport_t port=5005) | |
Create a UDP transmitter, 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 | Connect (const BroadcastAddress &subnet, tpport_t port) |
Associate this socket with a subnet of peer hosts for subnet broadcasting. More... | |
sockerror_t | Disconnect (void) |
Disassociate this socket from any host connection. More... | |
int | Send (void *buf, int len) |
Transmit "send" to use "connected" send rather than sendto. More... | |
void | endTransmitter (void) |
Stop transmitter. More... | |
SOCKET | getTransmitter (void) |
|
Create a UDP transmitter.
|
|
Create a UDP transmitter, 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. This class is only used to build the UDP Duplex.
|
|
Associate this socket with a subnet of peer hosts for subnet broadcasting. The server must be able to assert broadcast permission for the socket.
|
|
Associate this socket with a specified peer host. The port number from the constructor will be used. All UDP packets will be sent to and 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. |
|
Transmit "send" to use "connected" send rather than sendto.
|
|
Transmit "send" to use "connected" send rather than sendto.
|
|
Stop transmitter.
|
|
|
|
See if output queue is empty for sending more packets.
|
|
Reimplemented from Socket. |
|
Reimplemented from Socket. |
|
Reimplemented from Socket. |