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
Parent:
0:53afc51b78a9
--- 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;
         };