Main Page | Class Hierarchy | Class List | File List | Class Members

UDPListener Class Reference

Convenience class built on top of Socket for writing UDP servers.

#include <sstuff.hh>

Collaboration diagram for UDPListener:

Collaboration graph
[legend]
List of all members.

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.


The documentation for this class was generated from the following file:
Generated on Sun Feb 8 12:07:52 2004 for MTasker by doxygen 1.3.5