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.
Dependents: EthernetInterface EthernetInterface_RSF EthernetInterface EthernetInterface ... more
Diff: Socket.h
- Revision:
- 17:c5089d058eab
- Parent:
- 16:2d471deff212
diff -r 2d471deff212 -r c5089d058eab Socket.h
--- 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();
