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 3:774869068511, committed 2016-02-29
- 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);
};
