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.
Dependents: WiFiDip-KitchenSink WiFiDip-UsbKitchenSink WiFiDipCortexSensor WifiDipCortex-UDPDemo
Fork of cc3000_hostdriver_mbedsocket by
Diff: Socket/TCPSocketConnection.cpp
- Revision:
- 3:ad95e296bfbf
- Parent:
- 0:615c697c33b0
- Child:
- 5:245ac5b73132
--- a/Socket/TCPSocketConnection.cpp Thu Sep 19 08:02:13 2013 +0000 +++ b/Socket/TCPSocketConnection.cpp Thu Sep 19 08:04:22 2013 +0000 @@ -39,18 +39,7 @@ // -1 if unsuccessful, else number of bytes written int TCPSocketConnection::send_all(char* data, int length) { - Timer tmr; - int idx = 0; - tmr.start(); - while ((tmr.read_ms() < _timeout) || _blocking) { - - idx += wifi->send(data, length); - - if (idx == length) - return idx; - } - return (idx == 0) ? -1 : idx; } // -1 if unsuccessful, else number of bytes received