Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: HelloWizFi250Interface
Fork of NetworkSocketAPI by
Diff: TCPServer.cpp
- Revision:
- 98:0f614f1d0398
- Parent:
- 96:656011e49d9f
- Child:
- 105:2fd212f8da61
--- a/TCPServer.cpp Tue Apr 19 18:24:46 2016 -0500
+++ b/TCPServer.cpp Tue Apr 19 18:24:57 2016 -0500
@@ -31,27 +31,6 @@
return Socket::open(iface, NSAPI_TCP);
}
-int TCPServer::bind(uint16_t port)
-{
- SocketAddress addr(0, port);
- return bind(addr);
-}
-
-int TCPServer::bind(const char *address, uint16_t port)
-{
- SocketAddress addr(address, port);
- return bind(addr);
-}
-
-int TCPServer::bind(const SocketAddress &address)
-{
- if (!_socket) {
- return NSAPI_ERROR_NO_SOCKET;
- }
-
- return _iface->socket_bind(_socket, address);
-}
-
int TCPServer::listen(int backlog)
{
if (!_socket) {
