Skip to content

Commit 5c30c0f

Browse files
authored
Merge pull request #2594 from svastm/fix_tcp_server_constructor
Fix TCPServer constructor
2 parents b2ce50a + b56201c commit 5c30c0f

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

features/net/network-socket/TCPServer.h

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,11 @@ class TCPServer : public Socket {
4141
*
4242
* @param stack Network stack as target for socket
4343
*/
44-
TCPServer(NetworkStack *stack);
45-
46-
template <typename IF>
47-
TCPServer(IF *iface)
44+
template <typename S>
45+
TCPServer(S *stack)
4846
: _pending(0), _accept_sem(0)
4947
{
50-
open(iface->get_stack());
48+
open(stack);
5149
}
5250

5351
/** Destroy a socket

0 commit comments

Comments
 (0)