wip
Fork of Socket by
Diff: UDPSocket.h
- Revision:
- 6:cd2e5559786d
- Parent:
- 5:300e7ad2dc1d
- Child:
- 8:9cf9c2d45264
diff -r 300e7ad2dc1d -r cd2e5559786d UDPSocket.h --- 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