TAO_AV_TCP_Flow_Factory Class Reference

#include <TCP.h>

Inheritance diagram for TAO_AV_TCP_Flow_Factory:

Inheritance graph
[legend]
Collaboration diagram for TAO_AV_TCP_Flow_Factory:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 TAO_AV_TCP_Flow_Factory (void)
 Initialization hook.
virtual ~TAO_AV_TCP_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 260 of file TCP.h.


Constructor & Destructor Documentation

TAO_AV_TCP_Flow_Factory::TAO_AV_TCP_Flow_Factory ( void   ) 

Initialization hook.

Definition at line 267 of file TCP.cpp.

00268 {
00269 }

TAO_AV_TCP_Flow_Factory::~TAO_AV_TCP_Flow_Factory ( void   )  [virtual]

Definition at line 271 of file TCP.cpp.

00272 {
00273 }


Member Function Documentation

int TAO_AV_TCP_Flow_Factory::init ( int  argc,
char *  argv[] 
) [virtual]

Reimplemented from TAO_AV_Flow_Protocol_Factory.

Definition at line 276 of file TCP.cpp.

00278 {
00279   return 0;
00280 }

TAO_AV_Protocol_Object * TAO_AV_TCP_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 291 of file TCP.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().

00295 {
00296   TAO_AV_Callback *callback = 0;
00297   if (endpoint->get_callback (entry->flowname (), callback))
00298     {
00299       ACE_ERROR_RETURN ((LM_ERROR, "(%N,%l) Invalid callback\n"), 0);
00300     }
00301 
00302   TAO_AV_TCP_Object *object = 0;
00303   ACE_NEW_RETURN (object,
00304                   TAO_AV_TCP_Object (callback,
00305                                      transport),
00306                   0);
00307   callback->open (object,
00308                   handler);
00309   endpoint->set_protocol_object (entry->flowname (),
00310                                  object);
00311 
00312   endpoint->protocol_object_set ();
00313 
00314   return object;
00315 }

int TAO_AV_TCP_Flow_Factory::match_protocol ( const char *  flow_string  )  [virtual]

Reimplemented from TAO_AV_Flow_Protocol_Factory.

Definition at line 283 of file TCP.cpp.

References ACE_OS::strcasecmp().

00284 {
00285   if (ACE_OS::strcasecmp (flow_string,"TCP") == 0)
00286     return 1;
00287   return 0;
00288 }


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