#include <PracticalSocket.h>
Inheritance diagram for UDPSocket:


Public Member Functions | ||||
| UDPSocket () throw (SocketException) | ||||
Construct a UDP socket
| ||||
| UDPSocket (unsigned short localPort) throw (SocketException) | ||||
| Construct a UDP socket with the given local port. | ||||
| UDPSocket (const string &localAddress, unsigned short localPort) throw (SocketException) | ||||
| Construct a UDP socket with the given local port and address. | ||||
| void | disconnect () throw (SocketException) | |||
| Unset foreign address and port. | ||||
| void | sendTo (const void *buffer, int bufferLen, const string &foreignAddress, unsigned short foreignPort) throw (SocketException) | |||
| Send the given buffer as a UDP datagram to the specified address/port. | ||||
| int | recvFrom (void *buffer, int bufferLen, string &sourceAddress, unsigned short &sourcePort) throw (SocketException) | |||
| Read read up to bufferLen bytes data from this socket. | ||||
| void | setMulticastTTL (unsigned char multicastTTL) throw (SocketException) | |||
| Set the multicast TTL. | ||||
| void | joinGroup (const string &multicastGroup) throw (SocketException) | |||
| Join the specified multicast group. | ||||
| void | leaveGroup (const string &multicastGroup) throw (SocketException) | |||
| Leave the specified multicast group. | ||||
Private Member Functions | ||||
| void | setBroadcast () | |||
Definition at line 257 of file PracticalSocket.h.
1.5.1