TCP Echo Client example

Dependencies:   EthernetInterface mbed-rtos mbed

Files at this revision

API Documentation at this revision

Comitter:
emilmont
Date:
Thu Jul 26 16:45:55 2012 +0000
Parent:
1:a51d8ed156e6
Child:
3:3fbf0efec25a
Commit message:
enable string terminator; update socket library

Changed in this revision

EthernetInterface.lib Show annotated file Show diff for this revision Revisions of this file
main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/EthernetInterface.lib	Thu Jul 26 10:10:48 2012 +0000
+++ b/EthernetInterface.lib	Thu Jul 26 16:45:55 2012 +0000
@@ -1,1 +1,1 @@
-http://mbed.org/users/mbed_official/code/EthernetInterface/#56438e188f04
+http://mbed.org/users/mbed_official/code/EthernetInterface/#b7a3766f6253
--- a/main.cpp	Thu Jul 26 10:10:48 2012 +0000
+++ b/main.cpp	Thu Jul 26 16:45:55 2012 +0000
@@ -21,7 +21,7 @@
     
     char buf[256];
     int n = sock.receive(buf, 256);
-    // buf[n] = '\0';
+    buf[n] = '\0';
     printf("%s", buf);
     
     sock.close();