Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
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 13:04:15 by
1.7.2