ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/repos/Smersh/Redirector.hpp
Revision: 182
Committed: 2004-07-03T06:52:04-07:00 (21 years ago) by Douglas Thrift
File size: 496 byte(s)
Log Message:
Redirector redirects, nicely!

File Contents

# User Rev Content
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 179 int handle(Client* client);
17 Douglas Thrift 182 string query(const stringstream& post, const Environment& env);
18 Douglas Thrift 164 public:
19 Douglas Thrift 177 Redirector(int port, bool fork, const string& log, const string& redirect) :
20 Douglas Thrift 181 Daemon(port, log), redirect(redirect) { serve(fork,
21 Douglas Thrift 177 dynamic_cast<Daemon*>(this)); }
22 Douglas Thrift 164 ~Redirector() {}
23     };
24    
25     #endif // _Redirector_hpp_

Properties

Name Value
svn:eol-style native
svn:keywords Id