blob: a51a16e497c4bfd2d8005f93cf20dbe3dcb3b7af (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
#ifndef __HTTPSERV_H__
#define __HTTPSERV_H__
#ifdef __cplusplus
#include <Socket.h>
#include <String.h>
#include <Variables.h>
#include <Action.h>
#include <Task.h>
#include <Exceptions.h>
class HttpServ : public Task {
public:
HttpServ(Action *, int = 1500, const String & = String("GruiK Server v0.1")) throw (GeneralException);
virtual ~HttpServ();
void SetMenu(Action *);
virtual String GetName();
protected:
virtual int Do();
private:
Socket Listener;
Action * p;
String name;
int localport;
};
extern String endhl, endnl;
#else
#error This only works with a C++ compiler
#endif
#endif
|