summaryrefslogtreecommitdiff
path: root/examples/C++NPv1/Logging_Server.h
diff options
context:
space:
mode:
Diffstat (limited to 'examples/C++NPv1/Logging_Server.h')
-rw-r--r--examples/C++NPv1/Logging_Server.h42
1 files changed, 0 insertions, 42 deletions
diff --git a/examples/C++NPv1/Logging_Server.h b/examples/C++NPv1/Logging_Server.h
deleted file mode 100644
index 1fd03bac775..00000000000
--- a/examples/C++NPv1/Logging_Server.h
+++ /dev/null
@@ -1,42 +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"
-
-class ACE_SOCK_Stream;
-
-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 */