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:
- 6:cd2e5559786d
- Parent:
- 5:300e7ad2dc1d
- Child:
- 8:9cf9c2d45264
--- a/UDPSocket.h	Thu Jul 26 15:07:32 2012 +0000
+++ b/UDPSocket.h	Fri Jul 27 13:58:53 2012 +0000
@@ -49,7 +49,7 @@
     \param timeout The maximum amount of time in ms to wait while trying to send the buffer.
     \return the number of written bytes on success (>=0) or -1 on failure
     */
-    int sendTo(UDPPacket& packet, int timeout=0);
+    int sendTo(UDPPacket& packet, int timeout_ms=0);
     
     /** Receive data from a remote host.
     If a message is too long to fit in the supplied packet, excess bytes are
@@ -58,7 +58,7 @@
     \param timeout The maximum amount of time in ms to wait while trying to receive data.
     \return the number of received bytes on success (>=0) or -1 on failure
     */
-    int receiveFrom(UDPPacket& packet, int timeout=0);
+    int receiveFrom(UDPPacket& packet, int timeout_ms=0);
 };
 
 #endif 
    