Implementation of the NetworkSocketAPI for LWIP

Dependencies:   lwip-eth lwip-sys lwip

Dependents:   HelloLWIPInterface HelloLWIPInterfaceNonBlocking LWIPInterfaceTests SimpleHTTPExample ... more

Revision:
3:774869068511
Parent:
2:7fb7e78cb17f
Child:
4:a7349bd7776c
--- a/LWIPInterface.cpp	Thu Feb 25 11:09:49 2016 -0600
+++ b/LWIPInterface.cpp	Mon Feb 29 22:58:45 2016 +0000
@@ -168,9 +168,9 @@
 };
 
 
-SocketInterface *LWIPInterface::createSocket(socket_protocol_t proto)
+SocketInterface *LWIPInterface::createSocket(ns_protocol_t proto)
 {
-    int type = (proto == SOCK_UDP) ? SOCK_DGRAM : SOCK_STREAM;
+    int type = (proto == NS_UDP) ? SOCK_DGRAM : SOCK_STREAM;
     int fd = lwip_socket(AF_INET, type, 0);
 
     if (fd < 0) {