W5200(WIZ820io) network interface
MyNetUdpSocket.h
- Committer:
- va009039
- Date:
- 2012-04-14
- Revision:
- 0:61831b843b44
- Child:
- 1:803123933c5a
File content as of revision 0:61831b843b44:
// MyNetUdpSocket.h 2012/4/14 #ifndef MYNETUDPSOCKET_H #define MYNETUDPSOCKET_H #include "if/net/netudpsocket.h" class MyNetUdpSocket: public NetUdpSocket { public: MyNetUdpSocket(); virtual ~MyNetUdpSocket(); virtual NetUdpSocketErr bind(const Host& me); virtual int /*if < 0 : NetUdpSocketErr*/ sendto(const char* buf, int len, Host* pHost); virtual int /*if < 0 : NetUdpSocketErr*/ recvfrom(char* buf, int len, Host* pHost); virtual NetUdpSocketErr close(); virtual NetUdpSocketErr poll(); protected: int _socket; private: void cleanUp(); //Flush input buffer }; #endif //MYNETUDPSOCKET_H