summaryrefslogtreecommitdiff
path: root/examples/C++NPv1/Logging_Server.h
diff options
context:
space:
mode:
authornobody <nobody@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2003-04-10 19:59:37 +0000
committernobody <nobody@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2003-04-10 19:59:37 +0000
commit3df4acfa816441fc28a95dee6d0191a927145d95 (patch)
treeb5ae7ca44662cfd8e5c95f1826e4406021a606f5 /examples/C++NPv1/Logging_Server.h
parent60a5612b83d856fc0adc52b9f39fac9960ec9818 (diff)
downloadATCD-pre-subset.tar.gz
This commit was manufactured by cvs2svn to create tag 'pre-subset'.pre-subset
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 */