28 #ifndef __UDPSOCKET_H_
29 #define __UDPSOCKET_H_
39 bool onPacketReceived();
virtual void onReceive(uint16_t len)
Called when a datagram has arrived.
Implements the UDP protocol.
void tick()
This is a timer function that is called every NETWORK_TIMER_RESOLUTION milliseconds on every service...
bool send()
Sends the packet currently in the outgoing buffer
void prepareUDPPacket(uint16_t dataLength, uint16_t dataChecksum)
Fills out the UDP header and calculates the datagram checksum
Base class for TCP and UDP sockets.
virtual bool sendPacket()
Sends the packet currently in the shared buffer