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.
pull/2594/head
svastm 2016-08-31 17:30:07 +02:00
parent 9111aa4c2d
commit b56201c8c4
1 changed files with 3 additions and 5 deletions

View File

@ -41,13 +41,11 @@ public:
*
* @param stack Network stack as target for socket
*/
TCPServer(NetworkStack *stack);
template <typename IF>
TCPServer(IF *iface)
template <typename S>
TCPServer(S *stack)
: _pending(0), _accept_sem(0)
{
open(iface->get_stack());
open(stack);
}
/** Destroy a socket