ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/repos/Smersh/Daemon.hpp
(Generate patch)

Comparing Smersh/Daemon.hpp (file contents):
Revision 165 by Douglas Thrift, 2004-06-18T01:38:55-07:00 vs.
Revision 172 by Douglas Thrift, 2004-06-20T22:47:13-07:00

# Line 7 | Line 7
7   #ifndef _Daemon_hpp_
8   #define _Daemon_hpp_
9  
10 < #include "Smersh.hpp"
10 > #include <menes-api/socket.hpp>
11 >
12 > #include "Person.hpp"
13  
14   class Daemon
15   {
16   private:
17          int port;
18 +        virtual void handle();
19   protected:
20 +        Daemon(int port) : port(port) {}
21 +        void serve(bool fork, Daemon* self);
22   public:
23 <        Daemon(int port);
24 <        virtual ~Daemon();
23 >        Daemon(int port, bool fork) : port(port) { serve(fork, this); }
24 >        virtual ~Daemon() {}
25   };
26  
27   #endif // _Daemon_hpp_

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines