#ifndef _WEBINTERFACE_
#define _WEBINTERFACE_

#include "sys/sys"
#include "ThreadsAndMutexes/thread/thread"
#include "ThreadsAndMutexes/threadlist/threadlist"
#include "fdset/fdset"
#include "httpbuffer/httpbuffer"
#include "SocketHandling/socket/socket"

class Webinterface: public Thread {
public:
    Webinterface();
    virtual ~Webinterface();
    void execute();

private:
    void serve();
    void answer(Httpbuffer r);
    void answer_status();
    void answer_xslt();

    void answer_blob (string const &b);
    
    Socket cfd, sfd;
};

#endif
