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.
Fork of PicoTCP by
Revision 47:ed8f44fa8db9, committed 2013-07-25
- Comitter:
- daniele
- Date:
- Thu Jul 25 09:36:23 2013 +0000
- Parent:
- 46:c35c84e301e0
- Child:
- 48:668da12aad4b
- Child:
- 49:40fc4462265c
- Commit message:
- TCPConnection returns 0 on timeout now
Changed in this revision
| Socket/TCPSocketConnection.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/Socket/TCPSocketConnection.cpp Thu Jul 25 08:43:55 2013 +0000
+++ b/Socket/TCPSocketConnection.cpp Thu Jul 25 09:36:23 2013 +0000
@@ -79,7 +79,7 @@
TimeInterval timeout(!_blocking ? _timeout : osWaitForever);
if (wait_writable(timeout) != 0)
{
- return -1;
+ return 0; /* Timeout */
}
ret = picotcp_write(_ep, data, length);
@@ -112,7 +112,7 @@
TimeInterval timeout(!_blocking ? _timeout : osWaitForever);
if (wait_readable(timeout) != 0)
{
- return -1;
+ return 0; /* Timeout */
}
ret = picotcp_read(_ep, data, length);
