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:
- 8:b35559c14d17
- Parent:
- 7:d57efbdb6517
- Child:
- 10:62ce72ee3e91
--- a/Example/echoserver.cpp Wed Aug 17 05:22:15 2011 +0000 +++ b/Example/echoserver.cpp Wed Aug 17 05:30:35 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();