summaryrefslogtreecommitdiff
path: root/ACE/examples/Reactor/TP_Reactor/AcceptHandler.h
diff options
context:
space:
mode:
authorWilliam R. Otte <wotte@dre.vanderbilt.edu>2008-03-04 13:56:48 +0000
committerWilliam R. Otte <wotte@dre.vanderbilt.edu>2008-03-04 13:56:48 +0000
commitc4078c377d74290ebe4e66da0b4975da91732376 (patch)
tree1816ef391e42a07929304908ac0e21f4c2f6cb7b /ACE/examples/Reactor/TP_Reactor/AcceptHandler.h
parent700d1c1a6be348c6c70a2085e559baeb8f4a62ea (diff)
downloadATCD-c4078c377d74290ebe4e66da0b4975da91732376.tar.gz
swap in externals for ACE and TAO
Diffstat (limited to 'ACE/examples/Reactor/TP_Reactor/AcceptHandler.h')
-rw-r--r--ACE/examples/Reactor/TP_Reactor/AcceptHandler.h75
1 files changed, 0 insertions, 75 deletions
diff --git a/ACE/examples/Reactor/TP_Reactor/AcceptHandler.h b/ACE/examples/Reactor/TP_Reactor/AcceptHandler.h
deleted file mode 100644
index 036f7a36f5a..00000000000
--- a/ACE/examples/Reactor/TP_Reactor/AcceptHandler.h
+++ /dev/null
@@ -1,75 +0,0 @@
-/*
- * ACE reactor demonstration
- *
- * $Id$
- * Date: 26-Jan-2006
- */
-
-#ifndef __ACCEPTHANDLER_H__
-#define __ACCEPTHANDLER_H__
-
-#include <ace/Event_Handler.h>
-#include <ace/Reactor.h>
-#include <ace/SOCK_Acceptor.h>
-
-/**
- * This accept handler is based on the provided solution from the ACE course.
- */
-class AcceptHandler : public ACE_Event_Handler {
-
- private:
-
- /**
- * The reactor to which the accept handler belongs.
- */
- ACE_Reactor *mReactor;
-
- /**
- * The socket used for incoming conections.
- */
- ACE_SOCK_Acceptor mAcceptor;
-
- public:
-
- /**
- * @param reactor The reactor which will use this accept handler.
- */
- AcceptHandler(ACE_Reactor *reactor = 0);
-
- /**
- * The destructor exists for tracing purposes.
- */
- virtual ~AcceptHandler();
-
- /**
- * Open the listening socket and register the handler with the reactor.
- *
- * @return 0 on success, -1 on failure
- */
- int open(void);
-
- /**
- * @name Overridden methods from the ACE_Event_Handler
- */
- // @{
-
- /**
- * Provides the handle of mAcceptor.
- */
- virtual ACE_HANDLE get_handle(void) const;
-
- /**
- * Create a read handler for the new connection and register that
- * handler with the reactor.
- */
- virtual int handle_input(ACE_HANDLE = ACE_INVALID_HANDLE);
-
- /**
- * Close the listening socket.
- */
- virtual int handle_close(ACE_HANDLE, ACE_Reactor_Mask);
- // @}
-};
-
-#endif /* __ACCEPTHANDLER_H__ */
-