wip
Fork of Socket by
Diff: TCPSocketConnection.h
- Revision:
- 6:cd2e5559786d
- Parent:
- 5:300e7ad2dc1d
- Child:
- 7:ac5f77f4497a
--- a/TCPSocketConnection.h Thu Jul 26 15:07:32 2012 +0000 +++ b/TCPSocketConnection.h Fri Jul 27 13:58:53 2012 +0000 @@ -48,7 +48,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 send(char* data, int length, int timeout=0); + int send(char* data, int length, int timeout_ms=0); /** Send data to the remote host. \param data The buffer to send to the host. @@ -56,7 +56,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 send_all(char* data, int length, int timeout=0); + int send_all(char* data, int length, int timeout_ms=0); /** Receive data from the remote host. \param data The buffer in which to store the data received from the host. @@ -64,7 +64,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 receive(char* data, int length, int timeout=0); + int receive(char* data, int length, int timeout_ms=0); /** Receive data from the remote host. \param data The buffer in which to store the data received from the host. @@ -72,7 +72,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 receive_all(char* data, int length, int timeout=0); + int receive_all(char* data, int length, int timeout_ms=0); private: bool _closedByRemoteHost;