Implementation of the NetworkSocketAPI for LWIP

Dependencies:   lwip-eth lwip-sys lwip

Dependents:   HelloLWIPInterface HelloLWIPInterfaceNonBlocking LWIPInterfaceTests SimpleHTTPExample ... more

Revision:
18:5890b186a607
Parent:
17:7db2f5d503d4
Child:
20:8b55d035d127
--- a/LWIPInterface.cpp	Tue Apr 19 18:38:13 2016 -0500
+++ b/LWIPInterface.cpp	Wed Apr 20 00:48:19 2016 +0000
@@ -169,6 +169,7 @@
 
             udp_recv(s->udp, udp_recv_irq, s);
             *handle = s;
+            return 0;
 
         case NSAPI_TCP:
             s->proto = proto;
@@ -180,6 +181,7 @@
             tcp_arg(s->tcp, s);
             //tcp_err(s->tcp, tcp_error_irq);
             *handle = s;
+            return 0;
     }
 
     return NSAPI_ERROR_DEVICE_ERROR;
@@ -273,11 +275,6 @@
 
     return 0;
 }
-    
-bool LWIPInterface::socket_is_connected(void *handle)
-{
-    return true;
-}
 
 int LWIPInterface::socket_accept(void **handle, void *server)
 {