Skip to content

Commit 922eddf

Browse files
Seppo TakaloCruz Monrreal II
authored andcommitted
Allow legacy TCPServer::accept() to override inherited Socket::accept()
1 parent b777e39 commit 922eddf

File tree

1 file changed

+3
-11
lines changed

1 file changed

+3
-11
lines changed

features/netsocket/TCPServer.h

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -56,17 +56,9 @@ class TCPServer : public Socket {
5656
*/
5757
virtual ~TCPServer();
5858

59-
/** Listen for connections on a TCP socket
60-
*
61-
* Marks the socket as a passive socket that can be used to accept
62-
* incoming connections.
63-
*
64-
* @param backlog Number of pending connections that can be queued
65-
* simultaneously, defaults to 1
66-
* @return 0 on success, negative error code on failure
67-
*/
68-
nsapi_error_t listen(int backlog = 1);
69-
59+
// Allow legacy TCPServer::accept() to override inherited Socket::accept()
60+
using TCPSocket::accept;
61+
7062
/** Accepts a connection on a TCP socket
7163
*
7264
* The server socket must be bound and set to listen for connections.

0 commit comments

Comments
 (0)