ArNetPacketReceiverUdp Class Reference

#include <ArNetPacketReceiverUdp.h>

List of all members.


Detailed Description

This is the receiver for UDP packets.


Public Member Functions

ArFunctor2< ArNetPacket *,
struct sockaddr_in * > * 
getProcessPacketCB (void)
 Gets the callback used when a packet is received.
ArSocketgetSocket (void)
 Gets the socket this receiver uses.
bool readData (void)
 Reads in all the data available calling the processPacketCB.
void setProcessPacketCB (ArFunctor2< ArNetPacket *, struct sockaddr_in * > *functor)
 Sets the callback for use when a packet is received.
void setSocket (ArSocket *socket)
 Sets the socket this receiver uses.

Protected Attributes

char myBuff [ArNetPacket::MAX_LENGTH+20]
ArTime myLastPacket
ArNetPacket myPacket
ArFunctor2< ArNetPacket *,
struct sockaddr_in * > * 
myProcessPacketCB
ArSocketmySocket


The documentation for this class was generated from the following file:
Generated on Thu Aug 6 09:40:12 2009 for ArNetworking by  doxygen 1.5.1