mirror of https://github.com/ARMmbed/mbed-os.git
Merge pull request #2594 from svastm/fix_tcp_server_constructor
Fix TCPServer constructorpull/2431/merge
commit
5c30c0f166
|
@ -41,13 +41,11 @@ public:
|
||||||
*
|
*
|
||||||
* @param stack Network stack as target for socket
|
* @param stack Network stack as target for socket
|
||||||
*/
|
*/
|
||||||
TCPServer(NetworkStack *stack);
|
template <typename S>
|
||||||
|
TCPServer(S *stack)
|
||||||
template <typename IF>
|
|
||||||
TCPServer(IF *iface)
|
|
||||||
: _pending(0), _accept_sem(0)
|
: _pending(0), _accept_sem(0)
|
||||||
{
|
{
|
||||||
open(iface->get_stack());
|
open(stack);
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Destroy a socket
|
/** Destroy a socket
|
||||||
|
|
Loading…
Reference in New Issue