Simple HTTP server example with EthernetInterface lib. access the mbed via any browser, mbed echo back http request header.

Dependencies:   EthernetInterface mbed-rtos mbed

Fork of TCPSocket_HelloWorld by mbed official

Files at this revision

API Documentation at this revision

Comitter:
hsgw
Date:
Fri Mar 08 02:24:33 2013 +0000
Parent:
13:25ce35614dd1
Commit message:
add message

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
diff -r 25ce35614dd1 -r eae1575da9ca main.cpp
--- a/main.cpp	Tue Mar 05 07:29:19 2013 +0000
+++ b/main.cpp	Fri Mar 08 02:24:33 2013 +0000
@@ -54,6 +54,7 @@
 
     //listening for http GET request
     while (serverIsListened) {
+        //blocking mode(never timeout)
         if(svr.accept(client)<0) {
             printf("failed to accept connection.\n\r");
         } else {