summaryrefslogtreecommitdiff
path: root/examples/Connection/blocking/SPIPE-acceptor.h
diff options
context:
space:
mode:
authornobody <nobody@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1998-05-15 05:26:25 +0000
committernobody <nobody@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1998-05-15 05:26:25 +0000
commit06d9080b2ab6c35e7346c3c44cc4edbc0a61bea9 (patch)
tree7333b13696ca6fe1fea620d2f3a5cb67da93d931 /examples/Connection/blocking/SPIPE-acceptor.h
parent399c4ba179fc38b4e85846edc8af141d87e4bd1d (diff)
downloadATCD-06d9080b2ab6c35e7346c3c44cc4edbc0a61bea9.tar.gz
This commit was manufactured by cvs2svn to create tag 'TAO-0_1_21'.TAO-0_1_21
Diffstat (limited to 'examples/Connection/blocking/SPIPE-acceptor.h')
-rw-r--r--examples/Connection/blocking/SPIPE-acceptor.h65
1 files changed, 0 insertions, 65 deletions
diff --git a/examples/Connection/blocking/SPIPE-acceptor.h b/examples/Connection/blocking/SPIPE-acceptor.h
deleted file mode 100644
index 6428d6ccf55..00000000000
--- a/examples/Connection/blocking/SPIPE-acceptor.h
+++ /dev/null
@@ -1,65 +0,0 @@
-/* -*- C++ -*- */
-// $Id$
-
-#if !defined (SP_ACCEPTOR_H)
-#define SP_ACCEPTOR_H
-
-#include "ace/Svc_Handler.h"
-#include "ace/Acceptor.h"
-#include "ace/SPIPE_Stream.h"
-#include "ace/SPIPE_Acceptor.h"
-#include "ace/Asynch_IO.h"
-
-// This is the class that does the work once the ACE_Oneshot_Acceptor
-// has accepted a connection.
-
-class Svc_Handler : public ACE_Svc_Handler <ACE_SPIPE_STREAM, ACE_NULL_SYNCH>, public ACE_Handler
-{
-public:
- Svc_Handler (void);
- ~Svc_Handler (void);
-
- virtual int open (void *);
-
- virtual void handle_read_stream (const ACE_Asynch_Read_Stream::Result &result);
- // This is called when asynchronous read from the socket complete
- // Handle data from the client.
-
-private:
- ACE_Asynch_Read_Stream ar_;
- ACE_Message_Block mb_;
-};
-
-class IPC_Server : public ACE_Oneshot_Acceptor<Svc_Handler, ACE_SPIPE_ACCEPTOR>
-{
-public:
- IPC_Server (void);
- ~IPC_Server (void);
-
- // = Dynamic linking hooks.
- virtual int init (int argc, char *argv[]);
- // Initialize the network server.
-
- virtual int fini (void);
- // Close down the server.
-
- virtual int svc (void);
- // Run the interative service.
-
-private:
- int parse_args (int argc, char *argv[]);
- // Parse command-line arguments.
-
- int n_threads_;
- // Size of thread pool to use.
-
- TCHAR rendezvous_[MAXPATHLEN + 1];
- // 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_ACCEPTOR_H */
-