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@0:61831b843b44, 2012-04-14 (annotated)
- Committer:
- va009039
- Date:
- Sat Apr 14 17:21:11 2012 +0000
- Revision:
- 0:61831b843b44
- Child:
- 1:803123933c5a
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
va009039 | 0:61831b843b44 | 1 | #ifndef MYIPNETIF_H |
va009039 | 0:61831b843b44 | 2 | #define MYIPNETIF_H |
va009039 | 0:61831b843b44 | 3 | #include "mbed.h" |
va009039 | 0:61831b843b44 | 4 | #include "core/net.h" |
va009039 | 0:61831b843b44 | 5 | #include "if/net/netif.h" |
va009039 | 0:61831b843b44 | 6 | |
va009039 | 0:61831b843b44 | 7 | class MyNetIf : public NetIf { |
va009039 | 0:61831b843b44 | 8 | public: |
va009039 | 0:61831b843b44 | 9 | MyNetIf(); |
va009039 | 0:61831b843b44 | 10 | |
va009039 | 0:61831b843b44 | 11 | void init(); |
va009039 | 0:61831b843b44 | 12 | |
va009039 | 0:61831b843b44 | 13 | virtual ~MyNetIf(); |
va009039 | 0:61831b843b44 | 14 | virtual NetTcpSocket* tcpSocket(); |
va009039 | 0:61831b843b44 | 15 | virtual NetUdpSocket* udpSocket(); |
va009039 | 0:61831b843b44 | 16 | virtual NetDnsRequest* dnsRequest(const char* hostname); |
va009039 | 0:61831b843b44 | 17 | virtual NetDnsRequest* dnsRequest(Host* pHost); |
va009039 | 0:61831b843b44 | 18 | |
va009039 | 0:61831b843b44 | 19 | virtual void poll(); |
va009039 | 0:61831b843b44 | 20 | private: |
va009039 | 0:61831b843b44 | 21 | bool m_init; |
va009039 | 0:61831b843b44 | 22 | }; |
va009039 | 0:61831b843b44 | 23 | #endif //MYIPNETIF_H |