#include <DIOP_Factory.h>
Inheritance diagram for TAO_DIOP_Protocol_Factory:
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 | |
virtual TAO_Acceptor * | make_acceptor (void) |
virtual TAO_Connector * | make_connector (void) |
virtual int | requires_explicit_endpoint (void) const |
|
Constructor.
Definition at line 22 of file DIOP_Factory.cpp. References TAO_TAG_DIOP_PROFILE.
00023 : TAO_Protocol_Factory (TAO_TAG_DIOP_PROFILE) 00024 { 00025 } |
|
Destructor.
Definition at line 27 of file DIOP_Factory.cpp.
00028 { 00029 } |
|
Dynamic linking hook.
Implements TAO_Protocol_Factory. Definition at line 63 of file DIOP_Factory.cpp.
00064 {
00065 return 0;
00066 }
|
|
Implements TAO_Protocol_Factory. Definition at line 51 of file DIOP_Factory.cpp. References ACE_NEW_RETURN.
00052 { 00053 TAO_Acceptor *acceptor = 0; 00054 00055 ACE_NEW_RETURN (acceptor, 00056 TAO_DIOP_Acceptor, 00057 0); 00058 00059 return acceptor; 00060 } |
|
Implements TAO_Protocol_Factory. Definition at line 69 of file DIOP_Factory.cpp. References ACE_NEW_RETURN.
00070 { 00071 TAO_Connector *connector = 0; 00072 00073 ACE_NEW_RETURN (connector, 00074 TAO_DIOP_Connector, 00075 0); 00076 return connector; 00077 } |
|
Verify prefix is a match.
Implements TAO_Protocol_Factory. Definition at line 32 of file DIOP_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 } |
|
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.
00046 { 00047 return '/'; 00048 } |
|
Returns the prefix used by the protocol.
Implements TAO_Protocol_Factory. Definition at line 39 of file DIOP_Factory.cpp.
00040 { 00041 return ::the_prefix; 00042 } |
|
Implements TAO_Protocol_Factory. Definition at line 80 of file DIOP_Factory.cpp.
00081 { 00082 // This switch is actually meant to distinguish between pluggable 00083 // protocols which are able to clean up their endpoints and such 00084 // that aren't. E.g. UIOP will leave files, it therefore returns 1, 00085 // IIOP cleans up its endpoint resources, which therefore return 0. 00086 // 00087 // DIOP does clean up endpoint resources, but as DIOP is only 00088 // suitable for special environments, e.g. it supports only one-ways, 00089 // it returns 1 for an other reason than resource clean-up. 00090 00091 return 1; 00092 } |