NetworkSocketAPI / C027Interface

Dependencies:   C027_Support

Dependents:   HelloC027Interface U_Blox_DeviceConnector U_Blox_DeviceConnector U-Blox_Client

Fork of LWIPInterface by NetworkSocketAPI

Files at this revision

API Documentation at this revision

Comitter:
geky
Date:
Mon Feb 29 22:58:45 2016 +0000
Parent:
2:7fb7e78cb17f
Child:
4:a7349bd7776c
Commit message:
Matched changes to NetworkSocketAPI

Changed in this revision

LWIPInterface.cpp Show annotated file Show diff for this revision Revisions of this file
LWIPInterface.h Show annotated file Show diff for this revision Revisions of this file
--- 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) {
--- a/LWIPInterface.h	Thu Feb 25 11:09:49 2016 -0600
+++ b/LWIPInterface.h	Mon Feb 29 22:58:45 2016 +0000
@@ -35,7 +35,7 @@
     // Implementation of NetworkInterface
     virtual const char *getMACAddress();
 
-    virtual SocketInterface *createSocket(socket_protocol_t proto);
+    virtual SocketInterface *createSocket(ns_protocol_t proto);
     virtual void destroySocket(SocketInterface *socket);
 };