TAO_AV_UDP_Flow_Factory Class Reference

#include <UDP.h>

Inheritance diagram for TAO_AV_UDP_Flow_Factory:

Inheritance graph
[legend]
Collaboration diagram for TAO_AV_UDP_Flow_Factory:

Collaboration graph
[legend]
List of all members.

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_Objectmake_protocol_object (TAO_FlowSpec_Entry *entry, TAO_Base_StreamEndPoint *endpoint, TAO_AV_Flow_Handler *handler, TAO_AV_Transport *transport)

Constructor & Destructor Documentation

TAO_AV_UDP_Flow_Factory::TAO_AV_UDP_Flow_Factory void   ) 
 

Initialization hook.

Definition at line 1027 of file UDP.cpp.

01028 {
01029 }

TAO_AV_UDP_Flow_Factory::~TAO_AV_UDP_Flow_Factory void   )  [virtual]
 

Definition at line 1031 of file UDP.cpp.

01032 {
01033 }


Member Function Documentation

int TAO_AV_UDP_Flow_Factory::init int  argc,
char *  argv[]
[virtual]
 

Reimplemented from TAO_AV_Flow_Protocol_Factory.

Definition at line 1036 of file UDP.cpp.

01038 {
01039   return 0;
01040 }

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 1051 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().

01055 {
01056   TAO_AV_Callback *callback = 0;
01057   if( endpoint->get_callback (entry->flowname (), callback) ) {
01058     ACE_ERROR_RETURN ((LM_ERROR, "(%N,%l) Invalid callback\n"), 0);
01059   }
01060 
01061   TAO_AV_UDP_Object *object = 0;
01062   ACE_NEW_RETURN (object,
01063                   TAO_AV_UDP_Object (callback,
01064                                      transport),
01065                   0);
01066   callback->open (object,
01067                   handler);
01068   endpoint->set_protocol_object (entry->flowname (),
01069                                  object);
01070 
01071   endpoint->protocol_object_set ();
01072 
01073   return object;
01074 }

int TAO_AV_UDP_Flow_Factory::match_protocol const char *  flow_string  )  [virtual]
 

Reimplemented from TAO_AV_Flow_Protocol_Factory.

Definition at line 1043 of file UDP.cpp.

References ACE_OS::strcasecmp().

01044 {
01045   if (ACE_OS::strcasecmp (flow_string,"UDP") == 0)
01046     return 1;
01047   return 0;
01048 }


The documentation for this class was generated from the following files:
Generated on Thu Nov 9 13:48:18 2006 for TAO_AV by doxygen 1.3.6