Merge pull request #2594 from svastm/fix_tcp_server_constructor

Fix TCPServer constructor
pull/2431/merge
Sam Grove 2016-09-10 13:04:55 -05:00 committed by GitHub
commit 5c30c0f166
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