Skip to content

Commit b56201c

Browse files
committed
Fix TCPServer constructor
- Avoid a call to the protected method `get_stack()` which cause a build fail. - Remove the constructor definition `TCPServer(NetworkStack *stack)` because it has no implementation.
1 parent 9111aa4 commit b56201c

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)