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.
Fork of Socket by
Diff: UDPSocket.h
- Revision:
- 10:d24738f4ef99
- Parent:
- 8:9cf9c2d45264
- Child:
- 11:3d83c348fb8b
--- a/UDPSocket.h Fri Jul 27 15:56:20 2012 +0000 +++ b/UDPSocket.h Tue Jul 31 11:50:55 2012 +0000 @@ -48,19 +48,17 @@ /** Send a packet to the remote host. \param packet UDP Packet to be sent to the remote host - \param timeout_ms The maximum amount of time in ms to wait while trying to send the packet. \return the number of written bytes on success (>=0) or -1 on failure */ - int sendTo(UDPPacket& packet, int timeout_ms=0); + int sendTo(UDPPacket& packet); /** Receive data from a remote host. If a message is too long to fit in the supplied packet, excess bytes are discarded. \param packet UDP Packet received from the remote host - \param timeout The maximum amount of time in ms to wait while trying to receive packet. \return the number of received bytes on success (>=0) or -1 on failure */ - int receiveFrom(UDPPacket& packet, int timeout_ms=0); + int receiveFrom(UDPPacket& packet); }; #endif