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: C027_Support
Dependents: HelloC027Interface U_Blox_DeviceConnector U_Blox_DeviceConnector U-Blox_Client
Fork of LWIPInterface by
Revision 7:08d5a40ae448, committed 2016-03-09
- Comitter:
- sam_grove
- Date:
- Wed Mar 09 05:58:19 2016 +0000
- Parent:
- 5:2c7d2186543c
- Child:
- 8:cef01e812975
- Commit message:
- change LWIPSocket from struct to class
Changed in this revision
| LWIPInterface.h | Show annotated file Show diff for this revision Revisions of this file |
--- 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;
