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.
Dependencies: EthernetNetIf SimpleSocket 1.0 mbed
Diff: Example/echoserver.cpp
- Revision:
- 21:a3cf1f055a4d
- Parent:
- 17:50c0e9c5ca79
- Child:
- 22:fc886208c19b
--- a/Example/echoserver.cpp Fri Sep 09 06:05:07 2011 +0000 +++ b/Example/echoserver.cpp Fri Sep 09 09:49:45 2011 +0000 @@ -14,7 +14,7 @@ while (true) { if (ClientSocket socket = server.accept()) { while (socket.connected()) { - char buf[8]; + char buf[1]; int len = socket.read(buf, sizeof(buf)); if (len > 0) socket.write(buf, len);