ArNetworking: ArNetPacketReceiverUdp Class Reference

- Main Page
- Classes
- Related Pages

- Alphabetical List
- Class List
- Class Hierarchy
- Class Members

# 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.
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

The documentation for this class was generated from the following file:

- ArNetPacketReceiverUdp.h