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:
- 7:d57efbdb6517
- Parent:
- 6:8c44fe7acb82
- Child:
- 8:b35559c14d17
--- a/Example/echoserver.cpp Wed Aug 17 04:44:14 2011 +0000 +++ b/Example/echoserver.cpp Wed Aug 17 05:22:15 2011 +0000 @@ -2,11 +2,11 @@ #include "EthernetNetIf.h" #include "SimpleSocket.h" -int echoserver(int port) { +int echoserver() { DigitalOut led1(LED1); DigitalOut led2(LED2); - ServerSocket server(port); + ServerSocket server(1234); Timer timer; timer.start();