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.
MyNetIf.h
00001 // MyNetIf.h 2012/4/15 00002 #ifndef MYIPNETIF_H 00003 #define MYIPNETIF_H 00004 #include "mbed.h" 00005 #include "core/net.h" 00006 #include "if/net/netif.h" 00007 00008 class MyNetIf : public NetIf { 00009 public: 00010 MyNetIf(); 00011 00012 void init(); 00013 00014 virtual ~MyNetIf(); 00015 virtual NetTcpSocket* tcpSocket(); 00016 virtual NetUdpSocket* udpSocket(); 00017 virtual NetDnsRequest* dnsRequest(const char* hostname); 00018 virtual NetDnsRequest* dnsRequest(Host* pHost); 00019 00020 virtual void poll(); 00021 private: 00022 bool m_init; 00023 }; 00024 #endif //MYIPNETIF_H
Generated on Tue Jul 12 2022 19:58:52 by
1.7.2