ECG_UDP_Sender.h File Reference

#include "orbsvcs/RtecUDPAdminS.h"
#include "orbsvcs/RtecEventChannelAdminS.h"
#include "orbsvcs/Event/EC_Lifetime_Utils.h"
#include "orbsvcs/Event/EC_Lifetime_Utils_T.h"
#include "orbsvcs/Event/ECG_CDR_Message_Sender.h"
#include "orbsvcs/Event/ECG_UDP_Sender.inl"

Include dependency graph for ECG_UDP_Sender.h:

This graph shows which files directly or indirectly include this file:


class  TAO_ECG_UDP_Sender_Disconnect_Command
 Disconnects consumer represented by proxy from the Event Channel. More...
class  TAO_ECG_UDP_Sender
 Send events received from a "local" EC using UDP. NOT THREAD-SAFE. This class connect as a consumer to an EventChannel and forwards the events it receives from that EC using UDP. More...

Detailed Description

ECG_UDP_Sender.h 71541 2006-03-15 07:52:22Z jtc

Carlos O'Ryan (

Marina Spivak (

Based on previous work by Tim Harrison ( and other members of the DOC group. More details can be found in:

Define helper classes to propagate events between ECs using either UDP or multicast. The architecture is a bit complicated and deserves some explanation: sending the events over UDP (or mcast) is easy, a Consumer (TAO_ECG_UDP_Sender) subscribes for a certain set of events, its push() method marshalls the event set into a CDR stream that is sent using an ACE_SOCK_Dgram. The subscription set and IP address can be configured. Another helper class (TAO_ECG_UDP_Receiver) acts as a supplier of events; it receives a callback when an event is available on an ACE_SOCK_Dgram, it demarshalls the event and pushes it to the EC. Two ACE_Event_Handler classes are provided that can forward the events to this Supplier: TAO_ECG_Mcast_EH can receive events from a multicast group; TAO_ECG_UDP_EH can receive events from a regular UDP socket.

The class makes an extra copy of the events, we need to investigate if closer collaboration with its collocated EC could be used to remove that copy.

Generated on Tue Nov 21 09:54:45 2006 for TAO_RTEvent by  doxygen 1.4.7-1