mirror of https://github.com/ARMmbed/mbed-os.git
TCPSocket: Remove deprecated contructor with open
Default constructor and separate open call should be used instead.pull/12685/head
parent
2cfee7be71
commit
4918bc6aad
|
@ -37,25 +37,6 @@ public:
|
|||
*/
|
||||
TCPSocket();
|
||||
|
||||
/** Create a socket on a network interface
|
||||
*
|
||||
* Creates and opens a socket on the network stack of the given
|
||||
* network interface.
|
||||
*
|
||||
* @param stack Network stack as target for socket
|
||||
*
|
||||
* @deprecated since mbed-os-5.11
|
||||
*/
|
||||
template <typename S>
|
||||
MBED_DEPRECATED_SINCE("mbed-os-5.11",
|
||||
"The TCPSocket(S *stack) constructor is deprecated."
|
||||
"It discards the open() call return value."
|
||||
"Use another constructor and call open() explicitly, instead.")
|
||||
TCPSocket(S *stack) : TCPSocket()
|
||||
{
|
||||
open(stack);
|
||||
}
|
||||
|
||||
/** Override multicast functions to return error for TCP
|
||||
*
|
||||
*/
|
||||
|
|
Loading…
Reference in New Issue