Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

TAO_Protocol_Factory Class Reference

#include <Protocol_Factory.h>

Inheritance diagram for TAO_Protocol_Factory:

Inheritance graph
[legend]
Collaboration diagram for TAO_Protocol_Factory:

Collaboration graph
[legend]
List of all members.

Public Methods

 TAO_Protocol_Factory (CORBA::ULong tag)
virtual ~TAO_Protocol_Factory (void)
virtual int init (int argc, ACE_TCHAR *argv[])
 Initialization hook. More...

CORBA::ULong tag (void) const
 The protocol tag, each concrete class will have a specific tag value. More...

virtual int match_prefix (const ACE_CString &prefix)
 Verify prefix is a match. More...

virtual const char * prefix (void) const
 Returns the prefix used by the protocol. More...

virtual char options_delimiter (void) const
 Return the character used to mark where an endpoint ends and where its options begin. More...

virtual TAO_Acceptormake_acceptor (void)
 Create an acceptor. More...

virtual TAO_Connectormake_connector (void)
 Create a connector. More...

virtual int requires_explicit_endpoint (void) const=0

Private Attributes

CORBA::ULong tag_
 IOP protocol tag. More...


Constructor & Destructor Documentation

TAO_Protocol_Factory::TAO_Protocol_Factory CORBA::ULong    tag
 

Definition at line 11 of file Protocol_Factory.cpp.

00012   : tag_ (tag)
00013 {
00014 }

TAO_Protocol_Factory::~TAO_Protocol_Factory void    [virtual]
 

Definition at line 16 of file Protocol_Factory.cpp.

00017 {
00018 }


Member Function Documentation

int TAO_Protocol_Factory::init int    argc,
ACE_TCHAR   argv[]
[virtual]
 

Initialization hook.

Reimplemented from ACE_Shared_Object.

Reimplemented in TAO_IIOP_Protocol_Factory.

Definition at line 27 of file Protocol_Factory.cpp.

References ACE_TCHAR.

00029 {
00030  return -1;
00031 }

TAO_Acceptor * TAO_Protocol_Factory::make_acceptor void    [virtual]
 

Create an acceptor.

Reimplemented in TAO_IIOP_Protocol_Factory.

Definition at line 34 of file Protocol_Factory.cpp.

00035 {
00036   return 0;
00037 }

TAO_Connector * TAO_Protocol_Factory::make_connector void    [virtual]
 

Create a connector.

Reimplemented in TAO_IIOP_Protocol_Factory.

Definition at line 40 of file Protocol_Factory.cpp.

00041 {
00042   return 0;
00043 }

int TAO_Protocol_Factory::match_prefix const ACE_CString   prefix [virtual]
 

Verify prefix is a match.

Reimplemented in TAO_IIOP_Protocol_Factory.

Definition at line 46 of file Protocol_Factory.cpp.

References ACE_CString.

00047 {
00048   return 0;
00049 }

char TAO_Protocol_Factory::options_delimiter void    const [virtual]
 

Return the character used to mark where an endpoint ends and where its options begin.

Reimplemented in TAO_IIOP_Protocol_Factory.

Definition at line 58 of file Protocol_Factory.cpp.

Referenced by TAO_Acceptor_Registry::extract_endpoint_options.

00059 {
00060   return '\0';
00061 }

const char * TAO_Protocol_Factory::prefix void    const [virtual]
 

Returns the prefix used by the protocol.

Reimplemented in TAO_IIOP_Protocol_Factory.

Definition at line 52 of file Protocol_Factory.cpp.

00053 {
00054   return ::prefix_;
00055 }

virtual int TAO_Protocol_Factory::requires_explicit_endpoint void    const [pure virtual]
 

Some protocols should not create a default endpoint unless the user specifies a -ORBEndpoint option. For example, local IPC (aka UNIX domain sockets) is unable to remove the rendesvouz point if the server crashes. For those protocols is better to create the endpoint only if the user requests one.

Implemented in TAO_IIOP_Protocol_Factory.

CORBA::ULong TAO_Protocol_Factory::tag void    const
 

The protocol tag, each concrete class will have a specific tag value.

Definition at line 21 of file Protocol_Factory.cpp.

References tag_.

00022 {
00023   return this->tag_;
00024 }


Member Data Documentation

CORBA::ULong TAO_Protocol_Factory::tag_ [private]
 

IOP protocol tag.

Definition at line 72 of file Protocol_Factory.h.

Referenced by tag.


The documentation for this class was generated from the following files:
Generated on Mon Jun 16 15:37:31 2003 for TAO by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002