#include <RTP.h>
Inheritance diagram for TAO_AV_RTP_Flow_Factory:
Public Member Functions | |
TAO_AV_RTP_Flow_Factory (void) | |
Initialization hook. | |
virtual | ~TAO_AV_RTP_Flow_Factory (void) |
virtual int | init (int argc, char *argv[]) |
virtual int | match_protocol (const char *flow_string) |
virtual TAO_AV_Protocol_Object * | make_protocol_object (TAO_FlowSpec_Entry *entry, TAO_Base_StreamEndPoint *endpoint, TAO_AV_Flow_Handler *handler, TAO_AV_Transport *transport) |
virtual const char * | control_flow_factory (void) |
Definition at line 402 of file RTP.h.
TAO_AV_RTP_Flow_Factory::TAO_AV_RTP_Flow_Factory | ( | void | ) |
TAO_AV_RTP_Flow_Factory::~TAO_AV_RTP_Flow_Factory | ( | void | ) | [virtual] |
const char * TAO_AV_RTP_Flow_Factory::control_flow_factory | ( | void | ) | [virtual] |
int TAO_AV_RTP_Flow_Factory::init | ( | int | argc, | |
char * | argv[] | |||
) | [virtual] |
TAO_AV_Protocol_Object * TAO_AV_RTP_Flow_Factory::make_protocol_object | ( | TAO_FlowSpec_Entry * | entry, | |
TAO_Base_StreamEndPoint * | endpoint, | |||
TAO_AV_Flow_Handler * | handler, | |||
TAO_AV_Transport * | transport | |||
) | [virtual] |
Reimplemented from TAO_AV_Flow_Protocol_Factory.
Definition at line 735 of file RTP.cpp.
References ACE_ERROR_RETURN, ACE_NEW_RETURN, TAO_FlowSpec_Entry::flowname(), TAO_Base_StreamEndPoint::get_callback(), LM_ERROR, TAO_AV_Protocol_Object::open(), TAO_Base_StreamEndPoint::protocol_object_set(), and TAO_Base_StreamEndPoint::set_protocol_object().
00739 { 00740 TAO_AV_Callback *callback = 0; 00741 00742 if( endpoint->get_callback (entry->flowname (), callback) ) { 00743 ACE_ERROR_RETURN ((LM_ERROR, "(%N,%l) Invalid callback\n"), 0); 00744 } 00745 00746 TAO_AV_Protocol_Object *object = 0; 00747 ACE_NEW_RETURN (object, 00748 TAO_AV_RTP_Object (callback, 00749 transport), 00750 0); 00751 callback->open (object, 00752 handler); 00753 endpoint->set_protocol_object (entry->flowname (), 00754 object); 00755 00756 endpoint->protocol_object_set (); 00757 return object; 00758 }
int TAO_AV_RTP_Flow_Factory::match_protocol | ( | const char * | flow_string | ) | [virtual] |
Reimplemented from TAO_AV_Flow_Protocol_Factory.
Definition at line 761 of file RTP.cpp.
References ACE_OS::strncasecmp().
00762 { 00763 if (ACE_OS::strncasecmp (flow_string,"RTP",3) == 0) 00764 { 00765 return 1; 00766 } 00767 return 0; 00768 }