minor derivative to reduce compiler warnings and tag read-only parameters as const.

Dependents:   EthernetInterface

Fork of Socket by mbed official

Files at this revision

API Documentation at this revision

Comitter:
WiredHome
Date:
Tue Jul 03 02:06:47 2018 +0000
Parent:
21:04922f6a3602
Commit message:
Revised error returns to uniquely identify failure modes.

Changed in this revision

Socket.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/Socket.cpp	Sun Apr 09 20:57:44 2017 +0000
+++ b/Socket.cpp	Tue Jul 03 02:06:47 2018 +0000
@@ -35,7 +35,7 @@
     
     int fd = lwip_socket(AF_INET, type, 0);
     if (fd < 0)
-        return -1;
+        return -2;
     
     _sock_fd = fd;
     return 0;