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: cc3000_hello_world_demo cc3000_simple_socket_demo cc3000_ntp_demo cc3000_ping_demo ... more
Diff: Socket/TCPSocketConnection.cpp
- Revision:
- 3:ad95e296bfbf
- Parent:
- 0:615c697c33b0
- Child:
- 5:245ac5b73132
diff -r c43a6fe1f89a -r ad95e296bfbf Socket/TCPSocketConnection.cpp
--- 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
SimpleLink Wi-Fi CC3000
Avnet Wi-Go System