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
Revision 15:eae1575da9ca, committed 2013-03-08
- 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 {