1 |
Douglas Thrift |
164 |
// 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 |
Douglas Thrift |
165 |
string redirect; |
16 |
Douglas Thrift |
174 |
int handle(api::TcpSocket* client); |
17 |
Douglas Thrift |
164 |
public: |
18 |
Douglas Thrift |
177 |
Redirector(int port, bool fork, const string& log, const string& redirect) : |
19 |
|
|
Daemon(log), redirect(redirect) { serve(port, fork, |
20 |
|
|
dynamic_cast<Daemon*>(this)); } |
21 |
Douglas Thrift |
164 |
~Redirector() {} |
22 |
|
|
}; |
23 |
|
|
|
24 |
|
|
#endif // _Redirector_hpp_ |