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 NySNICInterface by
Diff: Socket/TCPSocketServer.h
- Revision:
- 32:ae95309643aa
- Parent:
- 29:6a0ba999597d
- Child:
- 39:a1233ca02edf
diff -r 15c22824cc46 -r ae95309643aa Socket/TCPSocketServer.h
--- a/Socket/TCPSocketServer.h Thu May 29 03:23:21 2014 +0000
+++ b/Socket/TCPSocketServer.h Fri May 30 08:30:40 2014 +0000
@@ -48,7 +48,7 @@
\param port The port to listen for incoming connections on.
\return 0 on success, -1 on failure.
*/
- int bind(int port);
+ int bind(unsigned short port);
/** Start listening for incoming connections.
\param backlog number of pending connections that can be queued up at any
@@ -61,7 +61,7 @@
\param connection A TCPSocketConnection instance that will handle the incoming connection.
\return 0 on success, -1 on failure.
*/
- int accept(TCPSocketConnection& connection);
+ int accept(TCPSocketConnection *connection);
};
#endif
