sandbox / LWIPInterface

Dependencies:   lwip-eth lwip-sys lwip

Fork of LWIPInterface by Christopher Haster

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;