ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/repos/Smersh/Redirector.hpp
Revision: 177
Committed: 2004-06-26T01:26:41-07:00 (21 years ago) by Douglas Thrift
File size: 439 byte(s)
Log Message:
z00t, need to make redirector and close sockets still!

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 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_

Properties

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