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.
Dependencies: lwip-eth lwip-sys lwip
Fork of LWIPInterface by
Diff: LWIPInterface.h
- Revision:
- 7:08d5a40ae448
- Parent:
- 5:2c7d2186543c
- Child:
- 8:cef01e812975
--- a/LWIPInterface.h Wed Mar 02 17:21:54 2016 +0000 +++ b/LWIPInterface.h Wed Mar 09 05:58:19 2016 +0000 @@ -28,6 +28,7 @@ class LWIPInterface : public EthernetInterface { public: + // Implementation of EthernetInterface virtual int32_t connect(); virtual int32_t disconnect(); @@ -38,11 +39,14 @@ virtual SocketInterface *createSocket(ns_protocol_t proto); virtual void destroySocket(SocketInterface *socket); + +private: -private: // Implementation of the TCP SocketInterface for LWIP - struct LWIPSocket : public SocketInterface + class LWIPSocket : public SocketInterface { + public: + LWIPSocket(int fd) : fd(fd) {} int fd;