#include <UDP.h>
Inheritance diagram for TAO_AV_UDP_Flow_Factory:
Public Member Functions | |
TAO_AV_UDP_Flow_Factory (void) | |
Initialization hook. | |
virtual | ~TAO_AV_UDP_Flow_Factory (void) |
virtual int | init (int argc, char *argv[]) |
virtual int | match_protocol (const char *flow_string) |
TAO_AV_Protocol_Object * | make_protocol_object (TAO_FlowSpec_Entry *entry, TAO_Base_StreamEndPoint *endpoint, TAO_AV_Flow_Handler *handler, TAO_AV_Transport *transport) |
Definition at line 267 of file UDP.h.
TAO_AV_UDP_Flow_Factory::TAO_AV_UDP_Flow_Factory | ( | void | ) |
TAO_AV_UDP_Flow_Factory::~TAO_AV_UDP_Flow_Factory | ( | void | ) | [virtual] |
int TAO_AV_UDP_Flow_Factory::init | ( | int | argc, | |
char * | argv[] | |||
) | [virtual] |
TAO_AV_Protocol_Object * TAO_AV_UDP_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 1062 of file UDP.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().
01066 { 01067 TAO_AV_Callback *callback = 0; 01068 if( endpoint->get_callback (entry->flowname (), callback) ) { 01069 ACE_ERROR_RETURN ((LM_ERROR, "(%N,%l) Invalid callback\n"), 0); 01070 } 01071 01072 TAO_AV_UDP_Object *object = 0; 01073 ACE_NEW_RETURN (object, 01074 TAO_AV_UDP_Object (callback, 01075 transport), 01076 0); 01077 callback->open (object, 01078 handler); 01079 endpoint->set_protocol_object (entry->flowname (), 01080 object); 01081 01082 endpoint->protocol_object_set (); 01083 01084 return object; 01085 }
int TAO_AV_UDP_Flow_Factory::match_protocol | ( | const char * | flow_string | ) | [virtual] |
Reimplemented from TAO_AV_Flow_Protocol_Factory.
Definition at line 1054 of file UDP.cpp.
References ACE_OS::strcasecmp().
01055 { 01056 if (ACE_OS::strcasecmp (flow_string,"UDP") == 0) 01057 return 1; 01058 return 0; 01059 }