webinterface (557B)
1 #ifndef _WEBINTERFACE_ 2 #define _WEBINTERFACE_ 3 4 #include "sys/sys" 5 #include "ThreadsAndMutexes/thread/thread" 6 #include "ThreadsAndMutexes/threadlist/threadlist" 7 #include "fdset/fdset" 8 #include "httpbuffer/httpbuffer" 9 #include "SocketHandling/socket/socket" 10 11 class Webinterface: public Thread { 12 public: 13 Webinterface(); 14 virtual ~Webinterface(); 15 void execute(); 16 17 private: 18 void serve(); 19 void answer(Httpbuffer r); 20 void answer_status(); 21 void answer_xslt(); 22 23 void answer_blob (string const &b); 24 25 Socket cfd, sfd; 26 }; 27 28 #endif