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.
Diff: TCPSocketServer.h
- 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.
mbed official


