- Auto reconnect - Added is_associated
Fork of WiflyInterface by
Diff: Socket/TCPSocketServer.h
- Revision:
- 10:9fc0bb21c723
- Parent:
- 1:fb4494783863
--- a/Socket/TCPSocketServer.h Tue Jan 28 11:00:48 2014 +0200 +++ b/Socket/TCPSocketServer.h Fri Dec 16 02:55:12 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