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