NET::UDPReceiver Class Reference

Used to recieve udp packets on a single port. More...

#include <UDP.h>

List of all members.

Public Member Functions

bool Receive (std::vector< uint8 > &data, Address *source=0)
 Receives the next packet and appends it to data. source (if not 0) will be filled with the address the packet came from. Returns false if there was nothing to receive.
uint16 GetPort () const
 Retrieves the port to which the receiver is bound.

Static Public Member Functions

static UDPReceiverCreateReceiver (uint16 port)
 Binds a socket to a port in order to receive upd packets. If the port cannot be bound or an error occurs, returns 0.
static void FreeReceiver (UDPReceiver *receiver)
 Unbinds and frees a UDPReceiver.


Detailed Description

Used to recieve udp packets on a single port.
The documentation for this class was generated from the following files:
Generated on Wed Feb 13 20:57:09 2008 for MPMA Framework by  doxygen 1.5.4