#include <ECG_UDP_Receiver.h>
Inheritance diagram for TAO_ECG_UDP_Receiver:
[NOHEADER] | |
~TAO_ECG_UDP_Receiver (void) | |
void | init (RtecEventChannelAdmin::EventChannel_ptr lcl_ec, TAO_ECG_Refcounted_Endpoint ignore_from, RtecUDPAdmin::AddrServer_ptr addr_server ACE_ENV_ARG_DECL) |
void | connect (const RtecEventChannelAdmin::SupplierQOS &pub ACE_ENV_ARG_DECL) |
Connect or reconnect to the EC with the given publications. | |
void | set_handler_shutdown (TAO_ECG_Refcounted_Handler handler_shutdown_rptr) |
void | shutdown (ACE_ENV_SINGLE_ARG_DECL) |
TAO_EC_Servant_Var< TAO_ECG_UDP_Receiver > | create (CORBA::Boolean perform_crc=0) |
Public Member Functions | |
void | get_addr (const RtecEventComm::EventHeader &header, RtecUDPAdmin::UDP_Addr_out addr ACE_ENV_ARG_DECL) |
virtual void | disconnect_push_supplier (ACE_ENV_SINGLE_ARG_DECL) throw (CORBA::SystemException) |
virtual int | handle_input (ACE_SOCK_Dgram &dgram) |
TAO_ECG_Dgram_Handler method. | |
Protected Member Functions | |
TAO_ECG_UDP_Receiver (CORBA::Boolean perform_crc=0) | |
Private Types | |
typedef TAO_EC_Auto_Command< TAO_ECG_UDP_Receiver_Disconnect_Command > | ECG_Receiver_Auto_Proxy_Disconnect |
Private Member Functions | |
void | new_connect (const RtecEventChannelAdmin::SupplierQOS &pub ACE_ENV_ARG_DECL) |
void | reconnect (const RtecEventChannelAdmin::SupplierQOS &pub ACE_ENV_ARG_DECL) |
Private Attributes | |
RtecEventChannelAdmin::EventChannel_var | lcl_ec_ |
Event Channel to which we act as a supplier. | |
RtecUDPAdmin::AddrServer_var | addr_server_ |
The server used to map event types to multicast groups. | |
RtecEventChannelAdmin::ProxyPushConsumer_var | consumer_proxy_ |
Proxy used to supply events to the Event Channel. | |
TAO_ECG_CDR_Message_Receiver | cdr_receiver_ |
TAO_ECG_Refcounted_Handler | handler_rptr_ |
ECG_Receiver_Auto_Proxy_Disconnect | auto_proxy_disconnect_ |
Manages our connection to Consumer Proxy. |
This class connects as a supplier to an EventChannel, and supplies to it all events it receives via UDP or Multicast.
|
|
|
|
|
Constructor (protected). Clients can create new TAO_ECG_UDP_Receiver objects using the static create() method. |
|
Connect or reconnect to the EC with the given publications.
|
|
Create a new TAO_ECG_UDP_Receiver object. (Constructor access is restricted to insure that all TAO_ECG_UDP_Receiver objects are heap-allocated.) |
|
The PushSupplier idl method. Invokes shutdown (), which may result in the object being deleted, if refcounting is used to manage its lifetime. |
|
Accessor. Call the RtecUDPAdmin::AddrServer::get_addr. Throws exception if nill Address Server was specified in init (). Implements TAO_ECG_Dgram_Handler. |
|
TAO_ECG_Dgram_Handler method. UDP/Multicast Event_Handlers call this method when data is available at the socket - the <dgram> is ready for reading. Data is read from the socket, and, if complete message is received, the event is pushed to the local Event Channel. Implements TAO_ECG_Dgram_Handler. |
|
|
|
|
|
|
|
Set the handler we must notify when shutdown occurs. (This is the handler that alerts us when data is available on udp/mcast socket.) Shutdown notification gives the handler an opportunity to properly clean up resources. |
|
If this class is used with refcounting, calling this method may result in decrementing of the reference count (due to deactivation) and deletion of the object. |
|
The server used to map event types to multicast groups.
|
|
Manages our connection to Consumer Proxy.
|
|
Helper for reading incoming UDP/Multicast messages. It assembles message fragments and provides access to a cdr stream once the complete message has been received. |
|
Proxy used to supply events to the Event Channel.
|
|
Handler we must notify when shutdown occurs, so it has an opportunity to clean up resources. |
|
Event Channel to which we act as a supplier.
|