ap
Dependencies: DnsQuery
Dependents: WizFi310_TCP_Echo_Server_Example
Fork of NetworkSocketAPI by
Diff: UDPSocket.cpp
- Revision:
- 98:0f614f1d0398
- Parent:
- 96:656011e49d9f
- Child:
- 105:2fd212f8da61
--- a/UDPSocket.cpp Tue Apr 19 18:24:46 2016 -0500 +++ b/UDPSocket.cpp Tue Apr 19 18:24:57 2016 -0500 @@ -31,27 +31,6 @@ return Socket::open(iface, NSAPI_UDP); } -int UDPSocket::bind(uint16_t port) -{ - SocketAddress addr(0, port); - return bind(addr); -} - -int UDPSocket::bind(const char *address, uint16_t port) -{ - SocketAddress addr(address, port); - return bind(addr); -} - -int UDPSocket::bind(const SocketAddress &address) -{ - if (!_socket) { - return NSAPI_ERROR_NO_SOCKET; - } - - return _iface->socket_bind(_socket, address); -} - int UDPSocket::sendto(const char *host, uint16_t port, const void *data, unsigned size) { SocketAddress addr(_iface, host, port);