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.
Fork of Socket by
Diff: TCPSocketServer.h
- Revision:
- 11:3d83c348fb8b
- Parent:
- 10:d24738f4ef99
- Child:
- 16:2d471deff212
diff -r d24738f4ef99 -r 3d83c348fb8b TCPSocketServer.h --- 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.