diff options
author | nobody <nobody@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1999-06-24 19:02:10 +0000 |
---|---|---|
committer | nobody <nobody@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1999-06-24 19:02:10 +0000 |
commit | eef5b7ca85a3842950948fccca42a3b83c84ff75 (patch) | |
tree | f0cefdf50cecee81338f319ea19608d49cf3898a /docs/tutorials/015/Server_i.h | |
parent | 07e8a1d00d1e2ab1c2b47e3698886f1512bcf03a (diff) | |
download | ATCD-pluggable_av_start.tar.gz |
This commit was manufactured by cvs2svn to create tagpluggable_av_start
'pluggable_av_start'.
Diffstat (limited to 'docs/tutorials/015/Server_i.h')
-rw-r--r-- | docs/tutorials/015/Server_i.h | 50 |
1 files changed, 0 insertions, 50 deletions
diff --git a/docs/tutorials/015/Server_i.h b/docs/tutorials/015/Server_i.h deleted file mode 100644 index 2a77c611565..00000000000 --- a/docs/tutorials/015/Server_i.h +++ /dev/null @@ -1,50 +0,0 @@ -// $Id$ - -#ifndef SERVER_H -#define SERVER_H - -#include "ace/Acceptor.h" - -#if !defined (ACE_LACKS_PRAGMA_ONCE) -# pragma once -#endif /* ACE_LACKS_PRAGMA_ONCE */ - -#include "ace/SOCK_Acceptor.h" -#include "Handler.h" - -/* Anytime I have templates I try to remember to create a typedef for - the parameterized object. It makes for much less typing later! -*/ -typedef ACE_Acceptor <Handler, ACE_SOCK_ACCEPTOR> Acceptor; - -class Server -{ -public: - // Our simple constructor takes no parameters. To make the - // server a bit more useful, you may want to pass in the - // TCP/IP port to be used by the acceptor. - Server (void); - ~Server (void); - - // Open the server for business - int open (void); - - // Close all server instances by setting the finished_ flag. - // Actually, the way this class is written, you can only have - // one instance. - static int close (void); - - // Run the server's main loop. The use of the gloabl ACE_Reactor by - // this method is what limits us to one Server instance. - int run (void); - -private: - // This will accept client connection requests and instantiate a - // Handler object for each new connection. - Acceptor acceptor_; - - // Our shutdown flag - static sig_atomic_t finished_; -}; - -#endif /* SERVER_H */ |