diff options
Diffstat (limited to 'examples/C++NPv1/Logging_Server.h')
-rw-r--r-- | examples/C++NPv1/Logging_Server.h | 44 |
1 files changed, 0 insertions, 44 deletions
diff --git a/examples/C++NPv1/Logging_Server.h b/examples/C++NPv1/Logging_Server.h deleted file mode 100644 index 2c8624a11cb..00000000000 --- a/examples/C++NPv1/Logging_Server.h +++ /dev/null @@ -1,44 +0,0 @@ -/* -** $Id$ -** -** Copyright 2001 Addison Wesley. All Rights Reserved. -*/ - -#ifndef _LOGGING_SERVER_H -#define _LOGGING_SERVER_H - -#include "ace/FILE_IO.h" -#include "ace/SOCK_Acceptor.h" - -ACE_BEGIN_VERSIONED_NAMESPACE_DECL -class ACE_SOCK_Stream; -ACE_END_VERSIONED_NAMESPACE_DECL - -class Logging_Server -{ -public: - // Template Method that runs logging server's event loop. - virtual int run (int argc, char *argv[]); - -protected: - // The following four methods are ``hooks'' that can be - // overridden by subclasses. - virtual int open (u_short port = 0); - virtual int wait_for_multiple_events () { return 0; } - virtual int handle_connections () = 0; - virtual int handle_data (ACE_SOCK_Stream * = 0) = 0; - - // The following helper method can be used by the hook methods. - int make_log_file (ACE_FILE_IO &, ACE_SOCK_Stream * = 0); - - // Close the socket endpoint. - virtual ~Logging_Server () { acceptor_.close (); } - - // Accessor. - ACE_SOCK_Acceptor &acceptor () { return acceptor_; } - -private: - ACE_SOCK_Acceptor acceptor_; // Socket acceptor endpoint. -}; - -#endif /* _LOGGING_SERVER_H */ |