minor derivative to reduce compiler warnings and tag read-only parameters as const.

Dependents:   EthernetInterface

Fork of Socket by mbed official

Revision:
19:434906b5b977
Parent:
11:3d83c348fb8b
Child:
20:5abbc0e39fb1
--- a/TCPSocketConnection.cpp	Thu May 30 17:15:01 2013 +0100
+++ b/TCPSocketConnection.cpp	Mon Aug 19 18:38:18 2013 +0300
@@ -66,7 +66,7 @@
     if ((_sock_fd < 0) || !_is_connected)
         return -1;
     
-    size_t writtenLen = 0;
+    int writtenLen = 0;
     TimeInterval timeout(_timeout);
     while (writtenLen < length) {
         if (!_blocking) {
@@ -110,7 +110,7 @@
     if ((_sock_fd < 0) || !_is_connected)
         return -1;
     
-    size_t readLen = 0;
+    int readLen = 0;
     TimeInterval timeout(_timeout);
     while (readLen < length) {
         if (!_blocking) {