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

TAO_IIOP_Lite_Protocol_Factory Class Reference

#include <IIOP_Lite_Factory.h>

Inheritance diagram for TAO_IIOP_Lite_Protocol_Factory:

Inheritance graph
[legend]
Collaboration diagram for TAO_IIOP_Lite_Protocol_Factory:

Collaboration graph
[legend]
List of all members.

Public Methods

 TAO_IIOP_Lite_Protocol_Factory (void)
virtual ~TAO_IIOP_Lite_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_Lite_Protocol_Factory::TAO_IIOP_Lite_Protocol_Factory void   
 

Definition at line 13 of file IIOP_Lite_Factory.cpp.

References IOP::TAG_INTERNET_IOP, TAO_DEF_GIOP_MAJOR, and TAO_DEF_GIOP_MINOR.

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

TAO_IIOP_Lite_Protocol_Factory::~TAO_IIOP_Lite_Protocol_Factory void    [virtual]
 

Definition at line 20 of file IIOP_Lite_Factory.cpp.

00021 {
00022 
00023 }


Member Function Documentation

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

Dynamic linking hook.

Reimplemented from TAO_Protocol_Factory.

Definition at line 59 of file IIOP_Lite_Factory.cpp.

References ACE_TCHAR.

00061 {
00062   return 0;
00063 }

TAO_Acceptor * TAO_IIOP_Lite_Protocol_Factory::make_acceptor void    [virtual]
 

Create an acceptor.

Reimplemented from TAO_Protocol_Factory.

Definition at line 45 of file IIOP_Lite_Factory.cpp.

References ACE_NEW_RETURN.

00046 {
00047   TAO_Acceptor *acceptor = 0;
00048 
00049   // We are a Lite factory
00050   CORBA::Boolean lite_flag = 1;
00051   ACE_NEW_RETURN (acceptor,
00052                   TAO_IIOP_Acceptor (lite_flag),
00053                   0);
00054 
00055   return acceptor;
00056 }

TAO_Connector * TAO_IIOP_Lite_Protocol_Factory::make_connector void    [virtual]
 

Create a connector.

Reimplemented from TAO_Protocol_Factory.

Definition at line 66 of file IIOP_Lite_Factory.cpp.

References ACE_NEW_RETURN.

00067 {
00068   TAO_Connector *connector = 0;
00069 
00070   // We are a Lite factory
00071   CORBA::Boolean lite_flag = 1;
00072 
00073   ACE_NEW_RETURN (connector,
00074                   TAO_IIOP_Connector (lite_flag),
00075                   0);
00076   return connector;
00077 }

int TAO_IIOP_Lite_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_Lite_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_Lite_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_Lite_Factory.cpp.

00040 {
00041   return '/';
00042 }

const char * TAO_IIOP_Lite_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_Lite_Factory.cpp.

Referenced by match_prefix.

00034 {
00035   return ::prefix_;
00036 }

int TAO_IIOP_Lite_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 80 of file IIOP_Lite_Factory.cpp.

00081 {
00082   return 0;
00083 }


Member Data Documentation

int TAO_IIOP_Lite_Protocol_Factory::major_ [private]
 

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

Definition at line 59 of file IIOP_Lite_Factory.h.

int TAO_IIOP_Lite_Protocol_Factory::minor_ [private]
 

Definition at line 60 of file IIOP_Lite_Factory.h.


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