1 #ifndef MSP_NET_DATAGRAMSOCKET_H_
2 #define MSP_NET_DATAGRAMSOCKET_H_
4 #include "clientsocket.h"
9 class DatagramSocket: public ClientSocket
12 DatagramSocket(Family, int = 0);
14 virtual bool connect(const SockAddr &);
15 virtual bool poll_connect(const Time::TimeDelta &) { return false; }
17 unsigned sendto(const char *, unsigned, const SockAddr &);
18 unsigned recvfrom(char *, unsigned, SockAddr *&);