fort Socket

Fork of Socket by mbed official

Revision:
10:d24738f4ef99
Parent:
8:9cf9c2d45264
Child:
11:3d83c348fb8b
--- a/TCPSocketConnection.h	Fri Jul 27 15:56:20 2012 +0000
+++ b/TCPSocketConnection.h	Tue Jul 31 11:50:55 2012 +0000
@@ -45,34 +45,30 @@
     /** Send data to the remote host.
     \param data The buffer to send to the host.
     \param length The length of the buffer to send.
-    \param timeout_ms 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_ms=0);
+    int send(char* data, int length);
     
     /** Send all the data to the remote host.
     \param data The buffer to send to the host.
     \param length The length of the buffer to send.
-    \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_ms=0);
+    int send_all(char* data, int length);
     
     /** Receive data from the remote host.
     \param data The buffer in which to store the data received from the host.
     \param length The maximum length of the buffer.
-    \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_ms=0);
+    int receive(char* data, int length);
     
     /** Receive all the data from the remote host.
     \param data The buffer in which to store the data received from the host.
     \param length The maximum length of the buffer.
-    \param timeout_ms 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_ms=0);
+    int receive_all(char* data, int length);
 
 private:
     bool _closedByRemoteHost;