#include <sstuff.hh>
Collaboration diagram for UDPListener:
Public Member Functions | |
UDPListener (const IPEndpoint &ep) | |
Constructor taking an IPEndpoint describing on what addresses to listen. | |
UDPListener (IPPort port) | |
Constructor taking only a port number, binding to all interfaces. | |
UDPListener () | |
For clients mostly, binds to all interfaces using a kernel assigned port number. | |
void | recvFrom (string &dgram, IPEndpoint &remote) |
Returns a datagram and reports its origin. | |
void | sendTo (const string &dgram, const IPEndpoint &remote) |
Sends a datagram to a remote. |