ap

Dependencies:   DnsQuery

Dependents:   WizFi310_TCP_Echo_Server_Example

Fork of NetworkSocketAPI by NetworkSocketAPI

Revision:
80:9c6673c93082
Parent:
79:43a7e8c0d6cc
Child:
81: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);
 }
-