W5200(WIZ820io) network interface
Embed:
(wiki syntax)
Show/hide line numbers
MyNetUdpSocket.h
00001 // MyNetUdpSocket.h 2012/4/16 00002 #ifndef MYNETUDPSOCKET_H 00003 #define MYNETUDPSOCKET_H 00004 #include "if/net/netudpsocket.h" 00005 00006 class MyNetUdpSocket: public NetUdpSocket { 00007 public: 00008 MyNetUdpSocket(int socket = (-1)); 00009 virtual ~MyNetUdpSocket(); 00010 virtual NetUdpSocketErr bind(const Host& me); 00011 virtual int /*if < 0 : NetUdpSocketErr*/ sendto(const char* buf, int len, Host* pHost); 00012 virtual int /*if < 0 : NetUdpSocketErr*/ recvfrom(char* buf, int len, Host* pHost); 00013 virtual NetUdpSocketErr close(); 00014 virtual NetUdpSocketErr poll(); 00015 protected: 00016 int _socket; 00017 private: 00018 void cleanUp(); //Flush input buffer 00019 }; 00020 #endif //MYNETUDPSOCKET_H
Generated on Tue Jul 12 2022 19:58:52 by 1.7.2