mirror of https://github.com/ARMmbed/mbed-os.git
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
parent
9111aa4c2d
commit
b56201c8c4
|
@ -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