Public Member Functions

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, ACE_TCHAR *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.

{
}

TAO_AV_TCP_Flow_Factory::~TAO_AV_TCP_Flow_Factory ( void   )  [virtual]

Definition at line 271 of file TCP.cpp.

{
}


Member Function Documentation

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

Reimplemented from TAO_AV_Flow_Protocol_Factory.

Definition at line 276 of file TCP.cpp.

{
  return 0;
}

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.

{
  TAO_AV_Callback *callback = 0;
  if (endpoint->get_callback (entry->flowname (), callback))
    {
      ACE_ERROR_RETURN ((LM_ERROR, "(%N,%l) Invalid callback\n"), 0);
    }

  TAO_AV_TCP_Object *object = 0;
  ACE_NEW_RETURN (object,
                  TAO_AV_TCP_Object (callback,
                                     transport),
                  0);
  callback->open (object,
                  handler);
  endpoint->set_protocol_object (entry->flowname (),
                                 object);

  endpoint->protocol_object_set ();

  return object;
}

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.

{
  if (ACE_OS::strcasecmp (flow_string,"TCP") == 0)
    return 1;
  return 0;
}


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines