simple-socket library 1.1.5
|
00001 #ifndef NET_UnixDatagramSocket_h__ 00002 #define NET_UnixDatagramSocket_h__ 00003 00004 #include "UnixSocket.h" 00005 00006 namespace NET 00007 { 00009 class UnixDatagramSocket : public UnixSocket 00010 { 00011 public: 00016 UnixDatagramSocket(); 00017 00027 void sendTo( const void* buffer, size_t len, const std::string& foreignPath); 00028 00039 int receiveFrom( void* buffer, size_t len, std::string& sourcePath); 00040 00054 int timedReceiveFrom( void* buffer, size_t len, std::string& sourcePath, int timeout); 00055 }; 00056 00057 } // namespace NET 00058 00059 #endif // NET_UnixDatagramSocket_h__