From 3ec0a2984e41a8edf9301e8623d98aafdf9bf634 Mon Sep 17 00:00:00 2001 From: nobody Date: Mon, 26 Jul 1999 18:15:56 +0000 Subject: This commit was manufactured by cvs2svn to create tag 'TAO-0_4_3'. --- apps/Gateway/Gateway/Event_Channel.h | 129 ----------------------------------- 1 file changed, 129 deletions(-) delete mode 100644 apps/Gateway/Gateway/Event_Channel.h (limited to 'apps/Gateway/Gateway/Event_Channel.h') diff --git a/apps/Gateway/Gateway/Event_Channel.h b/apps/Gateway/Gateway/Event_Channel.h deleted file mode 100644 index 4dcb86d24d3..00000000000 --- a/apps/Gateway/Gateway/Event_Channel.h +++ /dev/null @@ -1,129 +0,0 @@ -/* -*- C++ -*- */ -// $Id$ - -// ============================================================================ -// -// = LIBRARY -// gateway -// -// = FILENAME -// Event_Channel.h -// -// = AUTHOR -// Doug Schmidt -// -// ============================================================================ - -#ifndef ACE_EVENT_CHANNEL -#define ACE_EVENT_CHANNEL - -#include "Connection_Handler_Connector.h" -#include "Connection_Handler_Acceptor.h" -#include "Consumer_Dispatch_Set.h" -#include "Event_Forwarding_Discriminator.h" - -typedef ACE_Null_Mutex MAP_MUTEX; - -class ACE_Svc_Export Event_Channel : public ACE_Event_Handler -{ - // = TITLE - // Define a generic Event_Channel. - // - // = DESCRIPTION - // The inspiration for this class is derived from the CORBA COS - // Event Channel, though the design is simplified. - // - // We inherit from so that we can be - // registered with an to handle timeouts. -public: - // = Initialization and termination methods. - Event_Channel (void); - ~Event_Channel (void); - - virtual int open (void * = 0); - // Open the channel. - - virtual int close (u_long = 0); - // Close down the Channel. - - // = Proxy management methods. - int initiate_connection_connection (Connection_Handler *); - // Initiate the connection of the to its peer. - - int complete_connection_connection (Connection_Handler *); - // Complete the initialization of the once it's - // connected to its Peer. - - int reinitiate_connection_connection (Connection_Handler *); - // Reinitiate a connection asynchronously when the Peer fails. - - int bind_proxy (Connection_Handler *); - // Bind the to the . - - int find_proxy (ACE_INT32 connection_id, - Connection_Handler *&); - // Locate the with . - - int subscribe (const Event_Key &event_addr, - Consumer_Dispatch_Set *cds); - // Subscribe the to receive events that - // match . - - // = Event processing entry point. - virtual int put (ACE_Message_Block *mb, - ACE_Time_Value * = 0); - // Pass to the Event Channel so it can forward it to Consumers. - - void initiate_connector (void); - // Actively initiate connections to the Peers. - - int initiate_acceptors (void); - // Passively initiate the s for Consumer and - // Suppliers. - -private: - int parse_args (int argc, char *argv[]); - // Parse the command-line arguments. - - // = Methods for handling events. - void routing_event (Event_Key *event_key, - ACE_Message_Block *data); - // Forwards the to Consumer that have registered to receive - // it, based on addressing information in the . - - void subscription_event (ACE_Message_Block *data); - // Add a Consumer subscription. - - int compute_performance_statistics (void); - // Perform timer-based performance profiling. - - virtual int handle_timeout (const ACE_Time_Value &, - const void *arg); - // Periodically callback to perform timer-based performance - // profiling. - - Connection_Handler_Connector connector_; - // Used to establish the connections actively. - - Connection_Handler_Acceptor supplier_acceptor_; - // Used to establish connections passively and create Suppliers. - - Connection_Handler_Acceptor consumer_acceptor_; - // Used to establish connections passively and create Consumers. - - // = Make life easier by defining typedefs. - typedef ACE_Map_Manager - CONNECTION_MAP; - typedef ACE_Map_Iterator - CONNECTION_MAP_ITERATOR; - typedef ACE_Map_Entry - CONNECTION_MAP_ENTRY; - - CONNECTION_MAP connection_map_; - // Table that maps s to *'s. - - Event_Forwarding_Discriminator efd_; - // Map that associates an event to a set of *'s. -}; - -#endif /* ACE_EVENT_CHANNEL */ -- cgit v1.2.1