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
|
||||
*/
|
||||
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
|
||||
|
|
Loading…
Reference in New Issue