#include <IIOP_Factory.h>
Inheritance diagram for TAO_IIOP_Protocol_Factory:
Public Member Functions | |
TAO_IIOP_Protocol_Factory (void) | |
virtual | ~TAO_IIOP_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_Acceptor * | make_acceptor (void) |
Create an acceptor. | |
virtual TAO_Connector * | make_connector (void) |
Create a connector. | |
virtual int | requires_explicit_endpoint (void) const |
Definition at line 35 of file IIOP_Factory.h.
TAO_BEGIN_VERSIONED_NAMESPACE_DECL TAO_IIOP_Protocol_Factory::TAO_IIOP_Protocol_Factory | ( | void | ) |
Definition at line 19 of file IIOP_Factory.cpp.
00020 : TAO_Protocol_Factory (IOP::TAG_INTERNET_IOP) 00021 { 00022 }
TAO_IIOP_Protocol_Factory::~TAO_IIOP_Protocol_Factory | ( | void | ) | [virtual] |
int TAO_IIOP_Protocol_Factory::init | ( | int | argc, | |
ACE_TCHAR * | argv[] | |||
) | [virtual] |
Dynamic linking hook.
Implements TAO_Protocol_Factory.
Definition at line 60 of file IIOP_Factory.cpp.
TAO_Acceptor * TAO_IIOP_Protocol_Factory::make_acceptor | ( | void | ) | [virtual] |
Create an acceptor.
Implements TAO_Protocol_Factory.
Definition at line 48 of file IIOP_Factory.cpp.
References ACE_NEW_RETURN.
00049 { 00050 TAO_Acceptor *acceptor = 0; 00051 00052 ACE_NEW_RETURN (acceptor, 00053 TAO_IIOP_Acceptor, 00054 0); 00055 00056 return acceptor; 00057 }
TAO_Connector * TAO_IIOP_Protocol_Factory::make_connector | ( | void | ) | [virtual] |
Create a connector.
Implements TAO_Protocol_Factory.
Definition at line 67 of file IIOP_Factory.cpp.
References ACE_NEW_RETURN.
00068 { 00069 TAO_Connector *connector = 0; 00070 00071 ACE_NEW_RETURN (connector, 00072 TAO_IIOP_Connector, 00073 0); 00074 return connector; 00075 }
int TAO_IIOP_Protocol_Factory::match_prefix | ( | const ACE_CString & | prefix | ) | [virtual] |
Verify prefix is a match.
Implements TAO_Protocol_Factory.
Definition at line 29 of file IIOP_Factory.cpp.
References prefix(), ACE_OS::strcasecmp(), and the_prefix.
00030 { 00031 // Check for the proper prefix for this protocol. 00032 return (ACE_OS::strcasecmp (prefix.c_str (), ::the_prefix) == 0); 00033 }
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.
Implements TAO_Protocol_Factory.
Definition at line 42 of file IIOP_Factory.cpp.
const char * TAO_IIOP_Protocol_Factory::prefix | ( | void | ) | const [virtual] |
Returns the prefix used by the protocol.
Implements TAO_Protocol_Factory.
Definition at line 36 of file IIOP_Factory.cpp.
References the_prefix.
Referenced by match_prefix().
00037 { 00038 return ::the_prefix; 00039 }
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 it is better to create the endpoint only if the user requests one.
Implements TAO_Protocol_Factory.
Definition at line 78 of file IIOP_Factory.cpp.