TCP,UDP, ECHO

Dependencies:   mbed mbed-rtos EthernetInterface

Files at this revision

API Documentation at this revision

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
--- 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
--- 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