The lib with which to make LPC1768 a simple HTTP server. This have not yet implemented. fopen() DOESN'T WORK after EthernetInterface::connect() is called as using mbed-os 5.4~. See also https://os.mbed.com/questions/80658/HardFault-occurs-when-fopen-is-called-af/ or https://github.com/ARMmbed/mbed-os/issues/6578 and https://github.com/ARMmbed/mbed-os/issues/6624
Fork of HTTP_SERVER by
Diff: HTTP_SERVER.h
- Revision:
- 13:483b2b1a6471
- Parent:
- 12:c926d680f339
- Child:
- 14:a16cdcd098d7
diff -r c926d680f339 -r 483b2b1a6471 HTTP_SERVER.h --- a/HTTP_SERVER.h Sun Mar 04 18:40:16 2018 +0000 +++ b/HTTP_SERVER.h Sun Mar 04 19:08:36 2018 +0000 @@ -10,7 +10,7 @@ using namespace std; enum PortNum { - TCP_PORT = 80 + }; /** HttpServer class * @@ -48,6 +48,9 @@ bool keep_alive; bool listening_flag; char* req_buf[1024]; + uint16_t tcp_port; //Port number + int backlog; //backlog Number of pending connections that can be queued simultaneously + }; #endif \ No newline at end of file