Public Member Functions

TAO_DIOP_Protocol_Factory Class Reference

#include <DIOP_Factory.h>

Inheritance diagram for TAO_DIOP_Protocol_Factory:
Inheritance graph
[legend]
Collaboration diagram for TAO_DIOP_Protocol_Factory:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 TAO_DIOP_Protocol_Factory (void)
 Constructor.
virtual ~TAO_DIOP_Protocol_Factory (void)
 Destructor.
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
Protocol factory methods

Check Protocol_Factory.h for a description of these methods.

virtual TAO_Acceptormake_acceptor (void)
 Create an acceptor.
virtual TAO_Connectormake_connector (void)
 Create a connector.
virtual int requires_explicit_endpoint (void) const

Detailed Description

Definition at line 36 of file DIOP_Factory.h.


Constructor & Destructor Documentation

TAO_DIOP_Protocol_Factory::TAO_DIOP_Protocol_Factory ( void   ) 

Constructor.

Definition at line 22 of file DIOP_Factory.cpp.

TAO_DIOP_Protocol_Factory::~TAO_DIOP_Protocol_Factory ( void   )  [virtual]

Destructor.

Definition at line 27 of file DIOP_Factory.cpp.

{
}


Member Function Documentation

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

Dynamic linking hook.

Implements TAO_Protocol_Factory.

Definition at line 63 of file DIOP_Factory.cpp.

{
  return 0;
}

TAO_Acceptor * TAO_DIOP_Protocol_Factory::make_acceptor ( void   )  [virtual]

Create an acceptor.

Implements TAO_Protocol_Factory.

Definition at line 51 of file DIOP_Factory.cpp.

{
  TAO_Acceptor *acceptor = 0;

  ACE_NEW_RETURN (acceptor,
                  TAO_DIOP_Acceptor,
                  0);

  return acceptor;
}

TAO_Connector * TAO_DIOP_Protocol_Factory::make_connector ( void   )  [virtual]

Create a connector.

Implements TAO_Protocol_Factory.

Definition at line 69 of file DIOP_Factory.cpp.

{
  TAO_Connector *connector = 0;

  ACE_NEW_RETURN (connector,
                  TAO_DIOP_Connector,
                  0);
  return connector;
}

int TAO_DIOP_Protocol_Factory::match_prefix ( const ACE_CString prefix  )  [virtual]

Verify prefix is a match.

Implements TAO_Protocol_Factory.

Definition at line 32 of file DIOP_Factory.cpp.

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

char TAO_DIOP_Protocol_Factory::options_delimiter ( void   )  const [virtual]

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

Implements TAO_Protocol_Factory.

Definition at line 45 of file DIOP_Factory.cpp.

{
  return '/';
}

const char * TAO_DIOP_Protocol_Factory::prefix ( void   )  const [virtual]

Returns the prefix used by the protocol.

Implements TAO_Protocol_Factory.

Definition at line 39 of file DIOP_Factory.cpp.

int TAO_DIOP_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 80 of file DIOP_Factory.cpp.

{
  // This switch is actually meant to distinguish between pluggable
  // protocols which are able to clean up their endpoints and such
  // that aren't. E.g. UIOP will leave files, it therefore returns 1,
  // IIOP cleans up its endpoint resources, which therefore return 0.
  //
  // DIOP does clean up endpoint resources, but as DIOP is only
  // suitable for special environments, e.g. it supports only one-ways,
  // it returns 1 for an other reason than resource clean-up.

  return 1;
}


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