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.
Dependents: SimpleLCDClock readCard2Twitter_http AnalogClock_StepperMotor_NTP ServoCamV1
if/lwip/LwipNetIf.h@0:3717b703f76d, 2010-05-24 (annotated)
- Committer:
- donatien
- Date:
- Mon May 24 10:23:42 2010 +0000
- Revision:
- 0:3717b703f76d
- Child:
- 1:e52ec2a24c6a
Who changed what in which revision?
| User | Revision | Line number | New contents of line | 
|---|---|---|---|
| donatien | 0:3717b703f76d | 1 | #ifndef LWIPNETIF_H | 
| donatien | 0:3717b703f76d | 2 | #define LWIPNETIF_H | 
| donatien | 0:3717b703f76d | 3 | |
| donatien | 0:3717b703f76d | 4 | //class Ticker; | 
| donatien | 0:3717b703f76d | 5 | #include "mbed.h" | 
| donatien | 0:3717b703f76d | 6 | |
| donatien | 0:3717b703f76d | 7 | #define NET_LWIP_STACK 1 | 
| donatien | 0:3717b703f76d | 8 | #include "if/net/net.h" | 
| donatien | 0:3717b703f76d | 9 | #include "lwipNetTcpSocket.h" | 
| donatien | 0:3717b703f76d | 10 | #include "lwipNetUdpSocket.h" | 
| donatien | 0:3717b703f76d | 11 | #include "lwipNetDnsRequest.h" | 
| donatien | 0:3717b703f76d | 12 | |
| donatien | 0:3717b703f76d | 13 | class LwipNetIf : public NetIf | 
| donatien | 0:3717b703f76d | 14 | { | 
| donatien | 0:3717b703f76d | 15 | public: | 
| donatien | 0:3717b703f76d | 16 | LwipNetIf(); | 
| donatien | 0:3717b703f76d | 17 | virtual ~LwipNetIf(); | 
| donatien | 0:3717b703f76d | 18 | |
| donatien | 0:3717b703f76d | 19 | void init(); | 
| donatien | 0:3717b703f76d | 20 | |
| donatien | 0:3717b703f76d | 21 | virtual NetTcpSocket* tcpSocket(); //Create a new tcp socket | 
| donatien | 0:3717b703f76d | 22 | virtual NetUdpSocket* udpSocket(); //Create a new udp socket | 
| donatien | 0:3717b703f76d | 23 | virtual NetDnsRequest* dnsRequest(const char* hostname); //Create a new NetDnsRequest object | 
| donatien | 0:3717b703f76d | 24 | virtual NetDnsRequest* dnsRequest(Host* pHost); //Create a new NetDnsRequest object | 
| donatien | 0:3717b703f76d | 25 | |
| donatien | 0:3717b703f76d | 26 | virtual void poll(); | 
| donatien | 0:3717b703f76d | 27 | |
| donatien | 0:3717b703f76d | 28 | private: | 
| donatien | 0:3717b703f76d | 29 | Ticker m_tcpTicker; | 
| donatien | 0:3717b703f76d | 30 | Ticker m_dnsTicker; | 
| donatien | 0:3717b703f76d | 31 | |
| donatien | 0:3717b703f76d | 32 | bool m_init; | 
| donatien | 0:3717b703f76d | 33 | |
| donatien | 0:3717b703f76d | 34 | }; | 
| donatien | 0:3717b703f76d | 35 | |
| donatien | 0:3717b703f76d | 36 | #endif |