diff options
author | nobody <nobody@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1998-01-06 06:50:37 +0000 |
---|---|---|
committer | nobody <nobody@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1998-01-06 06:50:37 +0000 |
commit | 2f662b966b933653ee11f5b2f58c9be06dd3925f (patch) | |
tree | c59f73afa48ded43058e918c7414ac6186302a95 /examples/Connection/non_blocking/CPP-connector.h | |
parent | de8d5cc38b9acbfa8f0f4acf5d7453698876f3b8 (diff) | |
download | ATCD-2f662b966b933653ee11f5b2f58c9be06dd3925f.tar.gz |
This commit was manufactured by cvs2svn to create tag 'ACE_4_4_32'.ACE_4_4_32
Diffstat (limited to 'examples/Connection/non_blocking/CPP-connector.h')
-rw-r--r-- | examples/Connection/non_blocking/CPP-connector.h | 70 |
1 files changed, 0 insertions, 70 deletions
diff --git a/examples/Connection/non_blocking/CPP-connector.h b/examples/Connection/non_blocking/CPP-connector.h deleted file mode 100644 index 9454b0d1443..00000000000 --- a/examples/Connection/non_blocking/CPP-connector.h +++ /dev/null @@ -1,70 +0,0 @@ -/* -*- C++ -*- */ -// $Id$ - -#if !defined (CPP_CONNECTOR_H) -#define CPP_CONNECTOR_H - -#include "ace/Service_Config.h" -#include "ace/Connector.h" - -template <ACE_PEER_STREAM_1> -class Peer_Handler : public ACE_Svc_Handler<ACE_PEER_STREAM_2, ACE_SYNCH> -{ -public: - Peer_Handler (ACE_Reactor *r = 0); - - virtual int open (void * = 0); - // Activate the handler when connection is established. - - // = Demultiplexing hooks. - virtual int handle_output (ACE_HANDLE); - virtual int handle_input (ACE_HANDLE); - virtual int handle_close (ACE_HANDLE, ACE_Reactor_Mask mask); - virtual int handle_signal (int signum, siginfo_t * = 0, ucontext_t * = 0); - -protected: - // = These methods implement the State pattern. - int uninitialized (void); - int connected (void); - int stdio (void); - - int (Peer_Handler<ACE_PEER_STREAM_2>::*action_) (void); - // Keeps track of which state we are in. -}; - -template <class SVC_HANDLER, ACE_PEER_CONNECTOR_1> -class IPC_Client : public ACE_Connector<SVC_HANDLER, ACE_PEER_CONNECTOR_2> -{ -public: - // = Initialization and termination methods. - IPC_Client (void); - ~IPC_Client (void); - - // = Dynamic linking hooks. - virtual int init (int argc, char *argv[]); - // Initialize the IPC client. - - virtual int fini (void); - // Destroy the IPC client. - - virtual int svc (void); - // Run the svc. - - virtual int handle_close (ACE_HANDLE, ACE_Reactor_Mask); - // Report connection errors. - -private: - typedef ACE_Connector<SVC_HANDLER, ACE_PEER_CONNECTOR_2> inherited; - - ACE_Synch_Options options_; - // Options for the active connection factory. - - ACE_Sig_Adapter done_handler_; - // Keeps track of when we shut down due to receipt of the SIGINT - // signal. -}; - -#if defined (ACE_TEMPLATES_REQUIRE_SOURCE) -#include "CPP-connector.cpp" -#endif /* ACE_TEMPLATES_REQUIRE_SOURCE */ -#endif /* CPP_CONNECTOR_H */ |