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.

Revision:
11:3d83c348fb8b
Parent:
10:d24738f4ef99
Child:
16:2d471deff212
--- 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);