1 #ifndef __CONFIG_SERVER_H 2 #define __CONFIG_SERVER_H 6 #define NumberOfConfigWebChannels 6 18 #define DiscoverStyle \ 20 ".styleDiv{width:70%; min-width:480px; max-width:900px; font-family:sans-serif; margin-left:auto; margin-right:auto;}" \ 21 ".discDiv{border-width:1px; border-style:solid; border-color:#595454; border-radius:5px; margin-top:30px;}" \ 22 ".discTab{width:100%; color:#595454; border-spacing:0px;}" \ 23 ".devTh{font-weight:bold; border-bottom:2px solid #ddd; padding:8px; border-top:1px solid #595454; color:#333;}" \ 24 ".devTd{border-top:1px solid #ddd; padding:8px; color:#333;}" \ 25 ".tabTh{padding:8px; background-color:#595454; color:#fff; text-align:left;}" \ 26 ".btnCnf{width:125px; height:40px; background-color:#595454; color:#fff; border-radius:5px; margin-top:10px;}" \ 29 void StartConfigServer(
int prio);
31 void AddConfigServlet(servlet *s);
41 void CallFunctionToEnableConfigMirror();
45 bool ConfigAuthenticate(
const char *up);
48 void ConfigSetServlets();
51 void AddConfigServlet(servlet *s);
54 void ConfigIntFillInFD(fd_set &r_set, fd_set &w_set, fd_set &write_fds);
55 void ConfigIntProcessSelectResult(fd_set &r_set, fd_set &w_set, fd_set &error_fds);
57 class WebConfigServlet :
public servlet
63 WebConfigServlet(
int port = 20034);
64 virtual int AddToSelectSet(fd_set &read_fds, fd_set &write_fds, fd_set &error_fds);
65 virtual void ProcessSelectResult(fd_set &read_fds, fd_set &write_fds, fd_set &error_fds);