added support for serving files via HTTP port

This commit is contained in:
john30
2015-05-10 10:23:14 +02:00
parent 8c9be6074e
commit 357b730f31
4 changed files with 204 additions and 108 deletions
+1
View File
@@ -51,6 +51,7 @@ struct options
uint16_t port; //!< port to listen for command line connections [8888]
bool localOnly; //!< listen on 127.0.0.1 interface only
uint16_t httpPort; //!< optional port to listen for HTTP connections, 0 to disable [0]
string htmlPath; //!< path for HTML files served by the HTTP port [/var/ebusd/html]
const char* logFile; //!< log file name [/var/log/ebusd.log]
bool logRaw; //!< log each received/sent byte on the bus