mbed socket API
Dependents: EthernetInterface EthernetInterface_RSF EthernetInterface EthernetInterface ... more
Deprecated
This is an mbed 2 sockets library. For mbed 5, network sockets have been revised to better support additional network stacks and thread safety here.
Diff: Socket.h
- Revision:
- 17:c5089d058eab
- Parent:
- 16:2d471deff212
--- a/Socket.h Fri Mar 01 15:30:16 2013 +0000
+++ b/Socket.h Tue May 14 09:48:07 2013 +0000
@@ -65,9 +65,10 @@
*/
int get_option(int level, int optname, void *optval, socklen_t *optlen);
- /** Close the socket file descriptor
+ /** Close the socket
+ \param shutdown free the left-over data in message queues
*/
- int close();
+ int close(bool shutdown=true);
~Socket();
mbed official


