program to test the TCP socket connection of EthernetInterface. specifically, to reproduce a problem that results in the mbed re-sending the wrong packet after a packet loss
Dependencies: EthernetInterface FatFileSystemCpp SDFileSystem mbed-rtos mbed
Revision 1:6b90cbfe0c9e, committed 2012-09-22
- Comitter:
- uci1
- Date:
- Sat Sep 22 04:25:21 2012 +0000
- Parent:
- 0:53afc51b78a9
- Commit message:
- fixed return of DoIO in case of a send/recv returning 0
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Sat Sep 22 04:01:27 2012 +0000 +++ b/main.cpp Sat Sep 22 04:25:21 2012 +0000 @@ -280,7 +280,7 @@ // TODO: how to check the error? continue; case 0: - return res; + return b; default: b += res; };