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

TAO_IIOP_Protocol_Factory Class Reference

#include <IIOP_Factory.h>

Inheritance diagram for TAO_IIOP_Protocol_Factory:

Inheritance graph
[legend]
Collaboration diagram for TAO_IIOP_Protocol_Factory:

Collaboration graph
[legend]
List of all members.

Public Methods

 TAO_IIOP_Protocol_Factory (void)
virtual ~TAO_IIOP_Protocol_Factory (void)
virtual int init (int argc, ACE_TCHAR *argv[])
 Dynamic linking hook. 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

Private Attributes

int major_
 Changing the version number can be used to provide backwards compatibility with old clients. More...

int minor_

Constructor & Destructor Documentation

TAO_IIOP_Protocol_Factory::TAO_IIOP_Protocol_Factory void   
 

Definition at line 14 of file IIOP_Factory.cpp.

References IOP::TAG_INTERNET_IOP, TAO_DEF_GIOP_MAJOR, and TAO_DEF_GIOP_MINOR.

00015   :  TAO_Protocol_Factory (IOP::TAG_INTERNET_IOP),
00016      major_ (TAO_DEF_GIOP_MAJOR),
00017      minor_ (TAO_DEF_GIOP_MINOR)
00018 {
00019 }

TAO_IIOP_Protocol_Factory::~TAO_IIOP_Protocol_Factory void    [virtual]
 

Definition at line 21 of file IIOP_Factory.cpp.

00022 {
00023 }


Member Function Documentation

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

Dynamic linking hook.

Reimplemented from TAO_Protocol_Factory.

Definition at line 57 of file IIOP_Factory.cpp.

References ACE_TCHAR.

00059 {
00060   return 0;
00061 }

TAO_Acceptor * TAO_IIOP_Protocol_Factory::make_acceptor void    [virtual]
 

Create an acceptor.

Reimplemented from TAO_Protocol_Factory.

Definition at line 45 of file IIOP_Factory.cpp.

References ACE_NEW_RETURN.

00046 {
00047   TAO_Acceptor *acceptor = 0;
00048 
00049   ACE_NEW_RETURN (acceptor,
00050                   TAO_IIOP_Acceptor,
00051                   0);
00052 
00053   return acceptor;
00054 }

TAO_Connector * TAO_IIOP_Protocol_Factory::make_connector void    [virtual]
 

Create a connector.

Reimplemented from TAO_Protocol_Factory.

Definition at line 64 of file IIOP_Factory.cpp.

References ACE_NEW_RETURN.

00065 {
00066   TAO_Connector *connector = 0;
00067 
00068   ACE_NEW_RETURN (connector,
00069                   TAO_IIOP_Connector,
00070                   0);
00071   return connector;
00072 }

int TAO_IIOP_Protocol_Factory::match_prefix const ACE_CString   prefix [virtual]
 

Verify prefix is a match.

Reimplemented from TAO_Protocol_Factory.

Definition at line 26 of file IIOP_Factory.cpp.

References ACE_CString, prefix, and ACE_OS_String::strcasecmp.

00027 {
00028   // Check for the proper prefix for this protocol.
00029   return (ACE_OS::strcasecmp (prefix.c_str (), ::prefix_) == 0);
00030 }

char TAO_IIOP_Protocol_Factory::options_delimiter void    const [virtual]
 

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

Reimplemented from TAO_Protocol_Factory.

Definition at line 39 of file IIOP_Factory.cpp.

00040 {
00041   return '/';
00042 }

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

Returns the prefix used by the protocol.

Reimplemented from TAO_Protocol_Factory.

Definition at line 33 of file IIOP_Factory.cpp.

Referenced by match_prefix.

00034 {
00035   return ::prefix_;
00036 }

int TAO_IIOP_Protocol_Factory::requires_explicit_endpoint void    const [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.

Implements TAO_Protocol_Factory.

Definition at line 75 of file IIOP_Factory.cpp.

00076 {
00077   return 0;
00078 }


Member Data Documentation

int TAO_IIOP_Protocol_Factory::major_ [private]
 

Changing the version number can be used to provide backwards compatibility with old clients.

Definition at line 57 of file IIOP_Factory.h.

int TAO_IIOP_Protocol_Factory::minor_ [private]
 

Definition at line 58 of file IIOP_Factory.h.


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