TCP,UDP, ECHO
Dependencies: mbed mbed-rtos EthernetInterface
Revision 9:aca4ef49f633, committed 2019-09-25
- Comitter:
- dewantkatare
- Date:
- Wed Sep 25 16:35:42 2019 +0000
- Parent:
- 8:23b1fba109b0
- Commit message:
- TCP, UDP
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 |
diff -r 23b1fba109b0 -r aca4ef49f633 EthernetInterface.lib --- a/EthernetInterface.lib Tue Feb 14 16:20:16 2017 +0000 +++ b/EthernetInterface.lib Wed Sep 25 16:35:42 2019 +0000 @@ -1,1 +1,1 @@ -http://mbed.org/users/mbed_official/code/EthernetInterface/#183490eb1b4a +https://os.mbed.com/users/dewantkatare/code/EthernetInterface/#80abd4e0478f
diff -r 23b1fba109b0 -r aca4ef49f633 main.cpp --- a/main.cpp Tue Feb 14 16:20:16 2017 +0000 +++ b/main.cpp Wed Sep 25 16:35:42 2019 +0000 @@ -7,14 +7,14 @@ EthernetInterface eth; eth.init(); //Use DHCP eth.connect(); - printf("\nServer IP Address is %s\n", eth.getIPAddress()); + printf("\r\nServer IP Address is %s\n", eth.getIPAddress()); TCPSocketServer server; server.bind(ECHO_SERVER_PORT); server.listen(); while (true) { - printf("\nWait for new connection...\n"); + printf("\r\nWait for new connection...\n"); TCPSocketConnection client; server.accept(client); client.set_blocking(false, 1500); // Timeout after (1.5)s