#include <ArNetPacketReceiverUdp.h>
Public Member Functions | |
ArFunctor2< ArNetPacket *, struct sockaddr_in * > * | getProcessPacketCB (void) |
Gets the callback used when a packet is received. | |
ArSocket * | getSocket (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 |
ArSocket * | mySocket |