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 Member Functions

 TAO_IIOP_Lite_Protocol_Factory (void)
virtual ~TAO_IIOP_Lite_Protocol_Factory (void)
virtual int init (int argc, ACE_TCHAR *argv[])
 Dynamic linking hook.

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

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

virtual char options_delimiter (void) const
virtual TAO_Acceptormake_acceptor (void)
 Create an acceptor.

virtual TAO_Connectormake_connector (void)
 Create a connector.

virtual int requires_explicit_endpoint (void) const

Private Attributes

int const  major_
int const  minor_

Constructor & Destructor Documentation

TAO_BEGIN_VERSIONED_NAMESPACE_DECL TAO_IIOP_Lite_Protocol_Factory::TAO_IIOP_Lite_Protocol_Factory void   ) 
 

Definition at line 19 of file IIOP_Lite_Factory.cpp.

References TAO_DEF_GIOP_MAJOR, and TAO_DEF_GIOP_MINOR.

00020   :  TAO_Protocol_Factory (IOP::TAG_INTERNET_IOP),
00021      major_ (TAO_DEF_GIOP_MAJOR),
00022      minor_ (TAO_DEF_GIOP_MINOR)
00023 {
00024 }

TAO_IIOP_Lite_Protocol_Factory::~TAO_IIOP_Lite_Protocol_Factory void   )  [virtual]
 

Definition at line 26 of file IIOP_Lite_Factory.cpp.

00027 {
00028 
00029 }


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 65 of file IIOP_Lite_Factory.cpp.

00067 {
00068   return 0;
00069 }

TAO_Acceptor * TAO_IIOP_Lite_Protocol_Factory::make_acceptor void   )  [virtual]
 

Create an acceptor.

Reimplemented from TAO_Protocol_Factory.

Definition at line 51 of file IIOP_Lite_Factory.cpp.

References ACE_NEW_RETURN.

00052 {
00053   TAO_Acceptor *acceptor = 0;
00054 
00055   // We are a Lite factory
00056   CORBA::Boolean lite_flag = true;
00057   ACE_NEW_RETURN (acceptor,
00058                   TAO_IIOP_Acceptor (lite_flag),
00059                   0);
00060 
00061   return acceptor;
00062 }

TAO_Connector * TAO_IIOP_Lite_Protocol_Factory::make_connector void   )  [virtual]
 

Create a connector.

Reimplemented from TAO_Protocol_Factory.

Definition at line 72 of file IIOP_Lite_Factory.cpp.

References ACE_NEW_RETURN.

00073 {
00074   TAO_Connector *connector = 0;
00075 
00076   // We are a Lite factory
00077   CORBA::Boolean lite_flag = true;
00078 
00079   ACE_NEW_RETURN (connector,
00080                   TAO_IIOP_Connector (lite_flag),
00081                   0);
00082   return connector;
00083 }

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 32 of file IIOP_Lite_Factory.cpp.

References ACE_OS::strcasecmp().

00033 {
00034   // Check for the proper prefix for this protocol.
00035   return (ACE_OS::strcasecmp (prefix.c_str (), ::the_prefix) == 0);
00036 }

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 45 of file IIOP_Lite_Factory.cpp.

00046 {
00047   return '/';
00048 }

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 39 of file IIOP_Lite_Factory.cpp.

00040 {
00041   return ::the_prefix;
00042 }

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 it is better to create the endpoint only if the user requests one.

Implements TAO_Protocol_Factory.

Definition at line 86 of file IIOP_Lite_Factory.cpp.

00087 {
00088   return 0;
00089 }


Member Data Documentation

int const TAO_IIOP_Lite_Protocol_Factory::major_ [private]
 

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

Definition at line 65 of file IIOP_Lite_Factory.h.

int const TAO_IIOP_Lite_Protocol_Factory::minor_ [private]
 

Definition at line 66 of file IIOP_Lite_Factory.h.


The documentation for this class was generated from the following files:
Generated on Thu Nov 9 12:14:40 2006 for TAO by doxygen 1.3.6