TAO_AV 4.0.1
|
A helper entry class in the flow spec sequence passed to bind_devs. More...
#include <FlowSpec_Entry.h>
Public Types | |
enum | Direction { TAO_AV_INVALID = -1 , TAO_AV_DIR_IN = 0 , TAO_AV_DIR_OUT = 1 } |
enum | Role { TAO_AV_INVALID_ROLE = -1 , TAO_AV_PRODUCER = 0 , TAO_AV_CONSUMER = 1 } |
Public Member Functions | |
TAO_FlowSpec_Entry () | |
default constructor. | |
TAO_FlowSpec_Entry (const char *flowname, const char *direction, const char *format_name, const char *flow_protocol, const char *carrier_protocol, ACE_Addr *fwd_address, ACE_Addr *control_address=0) | |
constructor to construct an entry from the arguments. | |
TAO_FlowSpec_Entry (const char *flowname, const char *direction, const char *format_name, const char *flow_protocol, const char *fwd_address) | |
virtual int | parse (const char *flowSpec_entry)=0 |
construct the entry from a string specified by the flowSpec grammar. | |
virtual | ~TAO_FlowSpec_Entry () |
virtual destructor. | |
int | direction () |
accessor to the direction. | |
virtual Role | role ()=0 |
void | role (Role role) |
const char * | direction_str () const |
accessor to string version of direction . | |
const char * | flow_protocol_str () const |
accessor to the flow protocol string. | |
void | flow_protocol_str (const char *flow_protocol_str) |
set the flow protocol string. | |
ACE_Addr * | address () |
accessor to address of the carrier protocol. | |
ACE_Addr * | control_address () |
void | address (ACE_Addr *address, bool cleanup=false) |
void | control_address (ACE_Addr *address) |
const char * | address_str () const |
Address in string format i. hostname:port. | |
TAO_AV_Core::Protocol | carrier_protocol () |
accessor to carrier protocol i.e TCP,UDP,RTP/UDP. | |
const char * | carrier_protocol_str () const |
accessor to string version of carrier protocol. | |
const char * | format () const |
accessor to format to be used for this flow. | |
const char * | flowname () const |
accessor to name of this flow. | |
virtual const char * | entry_to_string ()=0 |
converts the entry to a string. | |
int | set_peer_addr (ACE_Addr *peer_addr) |
ACE_Addr * | get_peer_addr () |
int | set_peer_control_addr (ACE_Addr *peer_control_addr) |
ACE_Addr * | get_peer_control_addr () |
int | set_local_sec_addr (char **local_sec_addr, int size) |
char ** | get_local_sec_addr () |
int | num_local_sec_addrs () |
int | set_peer_sec_addr (char **peer_sec_addr, int size) |
char ** | get_peer_sec_addr () |
int | num_peer_sec_addrs () |
int | set_local_addr (ACE_Addr *local_addr) |
ACE_Addr * | get_local_addr () |
char * | get_local_addr_str () |
int | set_local_control_addr (ACE_Addr *local_control_addr) |
ACE_Addr * | get_local_control_addr () |
char * | get_local_control_addr_str () |
TAO_AV_Transport * | transport () |
void | transport (TAO_AV_Transport *transport) |
TAO_AV_Transport * | control_transport () |
void | control_transport (TAO_AV_Transport *control_transport) |
TAO_AV_Flow_Handler * | handler () |
void | handler (TAO_AV_Flow_Handler *handler) |
TAO_AV_Flow_Handler * | control_handler () |
void | control_handler (TAO_AV_Flow_Handler *control_handler) |
TAO_AV_Protocol_Object * | protocol_object () |
void | protocol_object (TAO_AV_Protocol_Object *object) |
TAO_AV_Protocol_Object * | control_protocol_object () |
void | control_protocol_object (TAO_AV_Protocol_Object *object) |
int | parse_address (const char *format_string, TAO_AV_Core::Flow_Component flow_component) |
sets the address for this flow. | |
int | is_multicast () |
returns true for a multicast address. | |
Protected Member Functions | |
int | parse_flow_protocol_string (const char *flow_options_string) |
parses the flow protocol string with tokens separated by : | |
int | set_direction (const char *direction_string) |
sets the direction flag. | |
int | set_protocol () |
sets the protocol_ enum from the carrier_protocol_ string. | |
A helper entry class in the flow spec sequence passed to bind_devs.
TAO_FlowSpec_Entry::TAO_FlowSpec_Entry | ( | ) |
default constructor.
TAO_FlowSpec_Entry::TAO_FlowSpec_Entry | ( | const char * | flowname, |
const char * | direction, | ||
const char * | format_name, | ||
const char * | flow_protocol, | ||
const char * | carrier_protocol, | ||
ACE_Addr * | fwd_address, | ||
ACE_Addr * | control_address = 0 ) |
constructor to construct an entry from the arguments.
TAO_FlowSpec_Entry::TAO_FlowSpec_Entry | ( | const char * | flowname, |
const char * | direction, | ||
const char * | format_name, | ||
const char * | flow_protocol, | ||
const char * | fwd_address ) |
|
virtual |
virtual destructor.
ACE_Addr * TAO_FlowSpec_Entry::address | ( | ) |
accessor to address of the carrier protocol.
void TAO_FlowSpec_Entry::address | ( | ACE_Addr * | address, |
bool | cleanup = false ) |
const char * TAO_FlowSpec_Entry::address_str | ( | ) | const |
Address in string format i. hostname:port.
TAO_AV_Core::Protocol TAO_FlowSpec_Entry::carrier_protocol | ( | ) |
accessor to carrier protocol i.e TCP,UDP,RTP/UDP.
const char * TAO_FlowSpec_Entry::carrier_protocol_str | ( | ) | const |
accessor to string version of carrier protocol.
ACE_Addr * TAO_FlowSpec_Entry::control_address | ( | ) |
void TAO_FlowSpec_Entry::control_address | ( | ACE_Addr * | address | ) |
TAO_AV_Flow_Handler * TAO_FlowSpec_Entry::control_handler | ( | ) |
void TAO_FlowSpec_Entry::control_handler | ( | TAO_AV_Flow_Handler * | control_handler | ) |
TAO_AV_Protocol_Object * TAO_FlowSpec_Entry::control_protocol_object | ( | ) |
void TAO_FlowSpec_Entry::control_protocol_object | ( | TAO_AV_Protocol_Object * | object | ) |
TAO_AV_Transport * TAO_FlowSpec_Entry::control_transport | ( | ) |
void TAO_FlowSpec_Entry::control_transport | ( | TAO_AV_Transport * | control_transport | ) |
int TAO_FlowSpec_Entry::direction | ( | ) |
accessor to the direction.
const char * TAO_FlowSpec_Entry::direction_str | ( | ) | const |
accessor to string version of direction .
|
pure virtual |
converts the entry to a string.
Implemented in TAO_Forward_FlowSpec_Entry, and TAO_Reverse_FlowSpec_Entry.
const char * TAO_FlowSpec_Entry::flow_protocol_str | ( | ) | const |
accessor to the flow protocol string.
void TAO_FlowSpec_Entry::flow_protocol_str | ( | const char * | flow_protocol_str | ) |
set the flow protocol string.
const char * TAO_FlowSpec_Entry::flowname | ( | ) | const |
accessor to name of this flow.
const char * TAO_FlowSpec_Entry::format | ( | ) | const |
accessor to format to be used for this flow.
ACE_Addr * TAO_FlowSpec_Entry::get_local_addr | ( | ) |
char * TAO_FlowSpec_Entry::get_local_addr_str | ( | ) |
ACE_Addr * TAO_FlowSpec_Entry::get_local_control_addr | ( | ) |
char * TAO_FlowSpec_Entry::get_local_control_addr_str | ( | ) |
char ** TAO_FlowSpec_Entry::get_local_sec_addr | ( | ) |
ACE_Addr * TAO_FlowSpec_Entry::get_peer_addr | ( | ) |
ACE_Addr * TAO_FlowSpec_Entry::get_peer_control_addr | ( | ) |
char ** TAO_FlowSpec_Entry::get_peer_sec_addr | ( | ) |
TAO_AV_Flow_Handler * TAO_FlowSpec_Entry::handler | ( | ) |
void TAO_FlowSpec_Entry::handler | ( | TAO_AV_Flow_Handler * | handler | ) |
int TAO_FlowSpec_Entry::is_multicast | ( | ) |
returns true for a multicast address.
int TAO_FlowSpec_Entry::num_local_sec_addrs | ( | ) |
int TAO_FlowSpec_Entry::num_peer_sec_addrs | ( | ) |
|
pure virtual |
construct the entry from a string specified by the flowSpec grammar.
Implemented in TAO_Forward_FlowSpec_Entry, and TAO_Reverse_FlowSpec_Entry.
int TAO_FlowSpec_Entry::parse_address | ( | const char * | format_string, |
TAO_AV_Core::Flow_Component | flow_component ) |
sets the address for this flow.
|
protected |
parses the flow protocol string with tokens separated by :
TAO_AV_Protocol_Object * TAO_FlowSpec_Entry::protocol_object | ( | ) |
void TAO_FlowSpec_Entry::protocol_object | ( | TAO_AV_Protocol_Object * | object | ) |
|
pure virtual |
Implemented in TAO_Forward_FlowSpec_Entry, and TAO_Reverse_FlowSpec_Entry.
void TAO_FlowSpec_Entry::role | ( | TAO_FlowSpec_Entry::Role | role | ) |
|
protected |
sets the direction flag.
int TAO_FlowSpec_Entry::set_local_addr | ( | ACE_Addr * | local_addr | ) |
int TAO_FlowSpec_Entry::set_local_control_addr | ( | ACE_Addr * | local_control_addr | ) |
int TAO_FlowSpec_Entry::set_local_sec_addr | ( | char ** | local_sec_addr, |
int | size ) |
int TAO_FlowSpec_Entry::set_peer_addr | ( | ACE_Addr * | peer_addr | ) |
int TAO_FlowSpec_Entry::set_peer_control_addr | ( | ACE_Addr * | peer_control_addr | ) |
int TAO_FlowSpec_Entry::set_peer_sec_addr | ( | char ** | peer_sec_addr, |
int | size ) |
|
protected |
sets the protocol_ enum from the carrier_protocol_ string.
TAO_AV_Transport * TAO_FlowSpec_Entry::transport | ( | ) |
void TAO_FlowSpec_Entry::transport | ( | TAO_AV_Transport * | transport | ) |
|
protected |
Addr information for the carrier protocol.
|
protected |
Fwd Addr in string format i.e hostname:port.
|
protected |
carrier protocol string.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
Direction of this flow.
|
protected |
string representation of the direction.
|
protected |
The flowspec entry;.
|
protected |
flow protocol string.
|
protected |
name of this flow.
|
protected |
format string.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
Peer Addr in string format i.e hostname:port.
|
protected |
|
protected |
|
protected |
name of the protocol used.
|
protected |
|
protected |
|
protected |
|
protected |