- Auto reconnect - Added is_associated method

Fork of WiflyInterface by mbed official

Revision:
10:e19f4c58a137
Parent:
1:fb4494783863
--- a/Socket/TCPSocketServer.h	Tue Jan 28 11:00:48 2014 +0200
+++ b/Socket/TCPSocketServer.h	Fri Dec 16 02:50:56 2016 +0000
@@ -47,6 +47,12 @@
     \return 0 on success, -1 on failure.
     */
     int accept(TCPSocketConnection& connection);
+    
+    /** Accept a new connection.
+    \param connection A TCPSocketConnection instance that will handle the incoming connection.
+    \return 0 on success, -1 on failure.
+    */
+    int acceptWithTimeout(TCPSocketConnection& connection, int timeout);
 };
 
 #endif