1 |
// Smersh |
2 |
// |
3 |
// Douglas Thrift |
4 |
// |
5 |
// $Id$ |
6 |
|
7 |
#ifndef _Redirector_hpp_ |
8 |
#define _Redirector_hpp_ |
9 |
|
10 |
#include "Daemon.hpp" |
11 |
|
12 |
class Redirector : public Daemon |
13 |
{ |
14 |
private: |
15 |
string redirect; |
16 |
int handle(Client* client); |
17 |
string query(const stringstream& post, const Environment& env); |
18 |
public: |
19 |
Redirector(int port, const string& log, const string& redirect) : |
20 |
Daemon(port, log, false), redirect(redirect) { |
21 |
serve(dynamic_cast<Daemon*>(this)); } |
22 |
~Redirector() {} |
23 |
}; |
24 |
|
25 |
#endif // _Redirector_hpp_ |