summaryrefslogtreecommitdiff
path: root/examples/Connection/blocking/SPIPE-connector.h
diff options
context:
space:
mode:
authornobody <nobody@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1996-12-30 06:50:29 +0000
committernobody <nobody@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1996-12-30 06:50:29 +0000
commita4a7690c336d4c8a16b3041c86d501ba38226e96 (patch)
tree9e9f93a98edd2591453f092d178ad29a1c5fb519 /examples/Connection/blocking/SPIPE-connector.h
parenta5c4d8047ab58df5c45092e18ae503ad40518f0e (diff)
downloadATCD-unlabeled-4.1.2.tar.gz
This commit was manufactured by cvs2svn to create branchunlabeled-4.1.2
'unlabeled-4.1.2'.
Diffstat (limited to 'examples/Connection/blocking/SPIPE-connector.h')
-rw-r--r--examples/Connection/blocking/SPIPE-connector.h75
1 files changed, 0 insertions, 75 deletions
diff --git a/examples/Connection/blocking/SPIPE-connector.h b/examples/Connection/blocking/SPIPE-connector.h
deleted file mode 100644
index 6a6fc97976f..00000000000
--- a/examples/Connection/blocking/SPIPE-connector.h
+++ /dev/null
@@ -1,75 +0,0 @@
-/* -*- C++ -*- */
-// $Id$
-
-#if !defined (SP_CONNECTOR_H)
-#define SP_CONNECTOR_H
-
-#include "ace/Svc_Handler.h"
-#include "ace/SPIPE_Stream.h"
-#include "ace/Connector.h"
-#include "ace/SPIPE_Connector.h"
-
-class Peer_Handler : public ACE_Svc_Handler<ACE_SPIPE_STREAM, ACE_NULL_SYNCH>
-{
-public:
- // = Initialization
-
- Peer_Handler (int iterations);
- // <iterations> is the number of buffers to send. If <iterations>
- // == 0, then read from stdin.
-
- ~Peer_Handler (void);
-
- virtual int open (void * = 0);
- // Activate the handler when connection is established.
-
- // = Demultiplexing hooks.
- virtual int handle_input (ACE_HANDLE);
- virtual int handle_close (ACE_HANDLE handle = ACE_INVALID_HANDLE,
- ACE_Reactor_Mask mask = ACE_Event_Handler::RWE_MASK);
-
- virtual ACE_HANDLE get_handle (void) const;
-
-private:
- void display_menu (void);
-
- int iterations_;
- // No. of buffers to send.
-};
-
-class IPC_Client : public ACE_Connector<Peer_Handler, ACE_SPIPE_CONNECTOR>
-{
-public:
- // Initialization
- 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:
- int parse_args (int argc, char *argv[]);
- // Parse command-line arguments.
-
- int iterations_;
- // Number of times to send a buffer.
-
- const char *rendezvous_;
- // Meeting place for pipe.
-
- ACE_Sig_Adapter done_handler_;
- // Keeps track of when we shut down due to receipt of the SIGINT
- // signal.
-};
-
-#endif /* SP_CONNECTOR_H */