fort Socket

Fork of Socket by mbed official

Revision:
11:3d83c348fb8b
Parent:
10:d24738f4ef99
Child:
16:2d471deff212
--- a/TCPSocketServer.h	Tue Jul 31 11:50:55 2012 +0000
+++ b/TCPSocketServer.h	Wed Aug 01 13:02:32 2012 +0000
@@ -29,8 +29,6 @@
     */
     TCPSocketServer();
     
-    ~TCPSocketServer();
-    
     /** Bind a socket to a specific port.
     \param port The port to listen for incoming connections on.
     \return 0 on success, -1 on failure.
@@ -38,10 +36,11 @@
     int bind(int port);
     
     /** Start listening for incoming connections.
-    \param backlog number of pending connections that can be queued up at any one time.
+    \param backlog number of pending connections that can be queued up at any
+                   one time [Default: 1].
     \return 0 on success, -1 on failure.
     */
-    int listen(int backlog);
+    int listen(int backlog=1);
     
     /** Accept a new connection.
     \param connection A TCPSocketConnection instance that will handle the incoming connection.