ap
Dependencies: DnsQuery
Dependents: WizFi310_TCP_Echo_Server_Example
Fork of NetworkSocketAPI by
Diff: UDPSocket.h
- Revision:
- 80:9c6673c93082
- Parent:
- 79:43a7e8c0d6cc
- Child:
- 81:1600369a29dd
--- a/UDPSocket.h Tue Apr 05 10:40:34 2016 -0500 +++ b/UDPSocket.h Tue Apr 05 12:02:56 2016 -0500 @@ -28,7 +28,6 @@ /** UDPSocket lifetime */ UDPSocket(NetworkInterface *iface); - ~UDPSocket(); /** Bind a UDP Server Socket to a specific port \param port The port to listen for incoming connections on @@ -42,7 +41,7 @@ \param size The length of the packet to be sent \return the number of written bytes on success, negative on failure */ - int sendto(SocketAddress address, const void *data, unsigned size); + int sendto(const SocketAddress &address, const void *data, unsigned size); /** Receive a packet from a remote endpoint \param address Destination for the remote SocketAddress or null