ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/repos/Smersh/Daemon.hpp
Revision: 172
Committed: 2004-06-20T22:47:13-07:00 (21 years ago) by Douglas Thrift
File size: 406 byte(s)
Log Message:
Moving ahead, slowly.

File Contents

# User Rev Content
1 Douglas Thrift 164 // Smersh
2     //
3     // Douglas Thrift
4     //
5     // $Id$
6    
7     #ifndef _Daemon_hpp_
8     #define _Daemon_hpp_
9    
10 Douglas Thrift 172 #include <menes-api/socket.hpp>
11 Douglas Thrift 164
12 Douglas Thrift 172 #include "Person.hpp"
13    
14 Douglas Thrift 164 class Daemon
15     {
16     private:
17 Douglas Thrift 165 int port;
18 Douglas Thrift 172 virtual void handle();
19 Douglas Thrift 164 protected:
20 Douglas Thrift 172 Daemon(int port) : port(port) {}
21     void serve(bool fork, Daemon* self);
22 Douglas Thrift 164 public:
23 Douglas Thrift 172 Daemon(int port, bool fork) : port(port) { serve(fork, this); }
24     virtual ~Daemon() {}
25 Douglas Thrift 164 };
26    
27     #endif // _Daemon_hpp_

Properties

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