10 #include "RtosSemaphore.hpp"
11 #include "LibLinkedList.hpp"
17 friend class NetClientDhcp;
19 friend class NetUdpSocket;
20 friend class NetRemoteConfiguration;
23 static LibLinkedList<NetUdpSocket> sSocketList;
26 static void processFrame(NetDefs::FRAME& frame, NetDefs::UDP_HEADER& header,
int len);
27 static void putHeader(NetDefs::FRAME& frame,
const NetDefs::MAC_ADDR& macDst,
const NetDefs::IP_ADDR& dstAddr, uint16_t srcPort, uint16_t dstPort,
29 static void flush(NetDefs::FRAME& frame,
int dataLen,
bool discardable);
30 static void swapHeader(NetDefs::UDP_HEADER& header);
32 static NetUdpSocket* findMatchingSocket(NetDefs::UDP_PORT port);
33 static void addSocket(NetUdpSocket& socket);
34 static void removeSocket(NetUdpSocket& socket);