TAO_AV  2.4.2
Public Member Functions | Protected Attributes | List of all members
TAO_FlowProducer Class Reference

#include <AVStreams_i.h>

Inheritance diagram for TAO_FlowProducer:
Inheritance graph
[legend]
Collaboration diagram for TAO_FlowProducer:
Collaboration graph
[legend]

Public Member Functions

 TAO_FlowProducer (void)
 default constructor More...
 
 TAO_FlowProducer (const char *flowname, AVStreams::protocolSpec protocols, const char *format)
 
virtual char * get_rev_channel (const char *pcol_name)
 
virtual void stop (void)
 stop this flow, to be overridden by the application. More...
 
virtual void start (void)
 start this flow, to be overridden by the application. More...
 
virtual char * go_to_listen (AVStreams::QoS &the_qos, CORBA::Boolean is_mcast, AVStreams::FlowEndPoint_ptr peer, char *&flowProtocol)
 
virtual CORBA::Boolean connect_to_peer (AVStreams::QoS &the_qos, const char *address, const char *use_flow_protocol)
 
virtual char * connect_mcast (AVStreams::QoS &the_qos, CORBA::Boolean_out is_met, const char *address, const char *use_flow_protocol)
 connect to the multicast address, not implemented. More...
 
virtual void set_key (const AVStreams::key &the_key)
 sets the public key to be used for encryption of the data. More...
 
virtual void set_source_id (CORBA::Long source_id)
 
- Public Member Functions inherited from TAO_FlowEndPoint
 TAO_FlowEndPoint (void)
 default constructor. More...
 
 TAO_FlowEndPoint (const char *flowname, AVStreams::protocolSpec &protocols, const char *format)
 
int open (const char *flowname, AVStreams::protocolSpec &protocols, const char *format)
 
int set_flowname (const char *flowname)
 
virtual void set_flow_handler (const char *flowname, TAO_AV_Flow_Handler *handler)
 
virtual int set_protocol_object (const char *flowname, TAO_AV_Protocol_Object *object)
 
virtual CORBA::Boolean lock (void)
 lock the flow endpoint for a particular flow. More...
 
virtual void unlock (void)
 unlock the flow endpoint for subsequent use. More...
 
virtual void destroy (void)
 destroy this flow. More...
 
virtual AVStreams::StreamEndPoint_ptr related_sep (void)
 
virtual void related_sep (AVStreams::StreamEndPoint_ptr related_sep)
 
virtual AVStreams::FlowConnection_ptr related_flow_connection (void)
 
virtual void related_flow_connection (AVStreams::FlowConnection_ptr related_flow_connection)
 set method for the related flow connection attribute. More...
 
virtual AVStreams::FlowEndPoint_ptr get_connected_fep (void)
 returns the other flowendpoint to which this is connected. More...
 
virtual CORBA::Boolean use_flow_protocol (const char *fp_name, const CORBA::Any &fp_settings)
 
virtual void set_format (const char *format)
 sets the data format. More...
 
virtual void set_dev_params (const CosPropertyService::Properties &new_settings)
 sets the device parameters. More...
 
virtual void set_protocol_restriction (const AVStreams::protocolSpec &the_spec)
 sets the list of protocols to be used. More...
 
virtual CORBA::Boolean is_fep_compatible (AVStreams::FlowEndPoint_ptr fep)
 checks whether the passed flowendpoint is compatible with this. More...
 
virtual CORBA::Boolean set_peer (AVStreams::FlowConnection_ptr the_fc, AVStreams::FlowEndPoint_ptr the_peer_fep, AVStreams::QoS &the_qos)
 sets the peer flowendpoint. More...
 
virtual CORBA::Boolean set_Mcast_peer (AVStreams::FlowConnection_ptr the_fc, AVStreams::MCastConfigIf_ptr a_mcastconfigif, AVStreams::QoS &the_qos)
 sets the multicast peer flowendpoint, not implemented. More...
 
virtual CORBA::Boolean connect_to_peer_i (TAO_FlowSpec_Entry::Role role, AVStreams::QoS &the_qos, const char *address, const char *use_flow_protocol)
 connect to the peer endpoint. More...
 
virtual char * go_to_listen_i (TAO_FlowSpec_Entry::Role role, AVStreams::QoS &the_qos, CORBA::Boolean is_mcast, AVStreams::FlowEndPoint_ptr peer, char *&flowProtocol)
 listen request from the peer. More...
 
- Public Member Functions inherited from TAO_Base_StreamEndPoint
 TAO_Base_StreamEndPoint (void)
 
virtual ~TAO_Base_StreamEndPoint (void)
 
virtual int handle_open (void)
 called when streamendpoint is instantiated More...
 
virtual int handle_close (void)
 called when streamendpoint is being destructed More...
 
virtual int handle_stop (const AVStreams::flowSpec &the_spec)
 Application needs to define this. More...
 
virtual int handle_start (const AVStreams::flowSpec &the_spec)
 Application needs to define this. More...
 
virtual int handle_destroy (const AVStreams::flowSpec &the_spec)
 Application needs to define this. More...
 
virtual CORBA::Boolean handle_preconnect (AVStreams::flowSpec &the_spec)
 Application needs to define this. More...
 
virtual CORBA::Boolean handle_postconnect (AVStreams::flowSpec &the_spec)
 Application needs to define this. More...
 
virtual CORBA::Boolean handle_connection_requested (AVStreams::flowSpec &the_spec)
 Application needs to define this. More...
 
virtual int get_callback (const char *flowname, TAO_AV_Callback *&callback)
 
virtual int get_control_callback (const char *flowname, TAO_AV_Callback *&callback)
 
virtual void set_control_flow_handler (const char *flowname, TAO_AV_Flow_Handler *handler)
 
TAO_AV_QoSqos (void)
 
void protocol_object_set (void)
 
int is_protocol_object_set (void)
 

Protected Attributes

CORBA::Long source_id_
 source id of this producer. More...
 
CORBA::String_var peer_address_
 
- Protected Attributes inherited from TAO_FlowEndPoint
AVStreams::StreamEndPoint_var related_sep_
 The related streamendpoint. More...
 
AVStreams::FlowConnection_var related_flow_connection_
 The related flow connection reference. More...
 
AVStreams::FlowEndPoint_var peer_fep_
 The peer flowendpoint reference. More...
 
AVStreams::protocolSpec protocols_
 Available protocols for this flowendpoint. More...
 
AVStreams::protocolSpec protocol_addresses_
 Address information for the protocols. More...
 
AVStreams::MCastConfigIf_var mcast_peer_
 The multicast peer endpoint. More...
 
CORBA::Boolean lock_
 Lock. More...
 
CORBA::String_var format_
 
CORBA::String_var flowname_
 
CosPropertyService::Properties dev_params_
 
TAO_AV_FlowSpecSet flow_spec_set_
 
CORBA::String_var reverse_channel_
 
- Protected Attributes inherited from TAO_Base_StreamEndPoint
TAO_AV_QoS qos_
 
Flow_Handler_Map flow_handler_map_
 
Flow_Handler_Map control_flow_handler_map_
 
int protocol_object_set_
 

Constructor & Destructor Documentation

TAO_FlowProducer::TAO_FlowProducer ( void  )

default constructor

TAO_FlowProducer::TAO_FlowProducer ( const char *  flowname,
AVStreams::protocolSpec  protocols,
const char *  format 
)

Member Function Documentation

char * TAO_FlowProducer::connect_mcast ( AVStreams::QoS the_qos,
CORBA::Boolean_out  is_met,
const char *  address,
const char *  use_flow_protocol 
)
virtual

connect to the multicast address, not implemented.

CORBA::Boolean TAO_FlowProducer::connect_to_peer ( AVStreams::QoS the_qos,
const char *  address,
const char *  use_flow_protocol 
)
virtual

This should be implemented in both the FlowProducer and consumer and hence is pure virtual since we need to know the role of the flowendpoint to create appropriate protocol objects. eg. in SFP to create Producer Object/ Consumer Object.

Implements TAO_FlowEndPoint.

char * TAO_FlowProducer::get_rev_channel ( const char *  pcol_name)
virtual

get the reverse channel, to be used for feedback for protocols like UDP. @Naga: In the spec this is defined in the TAO_FlowProducer but it seems more reasonable for this to be in a FlowEndPoint since any of the flowendpoints can be made to listen. So in the case of UDP if the producer is listening and the consumer connects (logically) then the producer needs to know the reverse channel on its peer fep to send data to.

char * TAO_FlowProducer::go_to_listen ( AVStreams::QoS the_qos,
CORBA::Boolean  is_mcast,
AVStreams::FlowEndPoint_ptr  peer,
char *&  flowProtocol 
)
virtual

This should be implemented in both the FlowProducer and consumer and hence is pure virtual since we need to know the role of the flowendpoint to create appropriate protocol objects. eg. in SFP to create Producer Object/ Consumer Object.

Implements TAO_FlowEndPoint.

void TAO_FlowProducer::set_key ( const AVStreams::key the_key)
virtual

sets the public key to be used for encryption of the data.

void TAO_FlowProducer::set_source_id ( CORBA::Long  source_id)
virtual

sets the source id of this flow producer so that it can be used to distinguish this producer from others in the multicast case.

void TAO_FlowProducer::start ( void  )
virtual

start this flow, to be overridden by the application.

void TAO_FlowProducer::stop ( void  )
virtual

stop this flow, to be overridden by the application.

Member Data Documentation

CORBA::String_var TAO_FlowProducer::peer_address_
protected
CORBA::Long TAO_FlowProducer::source_id_
protected

source id of this producer.


The documentation for this class was generated from the following files: