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:
- 11:3d83c348fb8b
- Parent:
- 10:d24738f4ef99
- Child:
- 16:2d471deff212
diff -r d24738f4ef99 -r 3d83c348fb8b Socket.h
--- a/Socket.h Tue Jul 31 11:50:55 2012 +0000
+++ b/Socket.h Wed Aug 01 13:02:32 2012 +0000
@@ -43,7 +43,7 @@
/** Set blocking or non-blocking mode of the socket and a timeout on
blocking socket operations
\param blocking true for blocking mode, false for non-blocking mode.
- \param timeout timeout in ms.
+ \param timeout timeout in ms [Default: (1500)ms].
*/
void set_blocking(bool blocking, unsigned int timeout=1500);
@@ -51,6 +51,8 @@
*/
int close();
+ ~Socket();
+
protected:
int _sock_fd;
int init_socket(int type);
