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.h
- Revision:
- 8:9c6673c93082
- Parent:
- 7:43a7e8c0d6cc
- Child:
- 9: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