W5200(WIZ820io) network interface

Revision:
0:61831b843b44
Child:
1:803123933c5a
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/MyNetUdpSocket.h	Sat Apr 14 17:21:11 2012 +0000
@@ -0,0 +1,20 @@
+// 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