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)

Detailed Description

Definition at line 267 of file UDP.h.


Constructor & Destructor Documentation

TAO_AV_UDP_Flow_Factory::TAO_AV_UDP_Flow_Factory ( void   ) 

Initialization hook.

Definition at line 1038 of file UDP.cpp.

01039 {
01040 }

TAO_AV_UDP_Flow_Factory::~TAO_AV_UDP_Flow_Factory ( void   )  [virtual]

Definition at line 1042 of file UDP.cpp.

01043 {
01044 }


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 1047 of file UDP.cpp.

01049 {
01050   return 0;
01051 }

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 }


The documentation for this class was generated from the following files:
Generated on Tue Feb 2 17:48:07 2010 for TAO_AV by  doxygen 1.4.7