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.
Diff: UDPSocket.cpp
- Revision:
- 8:9c6673c93082
- Parent:
- 7:43a7e8c0d6cc
- Child:
- 9:1600369a29dd
--- a/UDPSocket.cpp Tue Apr 05 10:40:34 2016 -0500
+++ b/UDPSocket.cpp Tue Apr 05 12:02:56 2016 -0500
@@ -30,7 +30,7 @@
return _iface->socket_bind(_socket, port);
}
-int UDPSocket::sendto(SocketAddress address, const void *data, unsigned size)
+int UDPSocket::sendto(const SocketAddress &address, const void *data, unsigned size)
{
if (!_socket) {
return NSAPI_ERROR_NO_SOCKET;
@@ -47,4 +47,3 @@
return _iface->socket_recvfrom(_socket, address, buffer, size);
}
-