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:
15:41e3af01f58e
--- a/TCPSocketServer.cpp	Tue Jul 31 11:50:55 2012 +0000
+++ b/TCPSocketServer.cpp	Wed Aug 01 13:02:32 2012 +0000
@@ -71,10 +71,7 @@
     if (fd < 0)
         return -1; //Accept failed
     connection._sock_fd = fd;
+    connection._is_connected = true;
     
     return 0;
 }
-
-TCPSocketServer::~TCPSocketServer() {
-    close(); //Don't want to leak 
-}