#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 |
Private Attributes | |
int | major_ |
int | minor_ |
|
Constructor.
Definition at line 22 of file DIOP_Factory.cpp. References TAO_DEF_GIOP_MAJOR, TAO_DEF_GIOP_MINOR, and TAO_TAG_DIOP_PROFILE.
00023 : TAO_Protocol_Factory (TAO_TAG_DIOP_PROFILE), 00024 major_ (TAO_DEF_GIOP_MAJOR), 00025 minor_ (TAO_DEF_GIOP_MINOR) 00026 { 00027 } |
|
Destructor.
Definition at line 29 of file DIOP_Factory.cpp.
00030 { 00031 } |
|
Dynamic linking hook.
Reimplemented from TAO_Protocol_Factory. Definition at line 65 of file DIOP_Factory.cpp.
00067 {
00068 return 0;
00069 }
|
|
Reimplemented from TAO_Protocol_Factory. Definition at line 53 of file DIOP_Factory.cpp. References ACE_NEW_RETURN.
00054 { 00055 TAO_Acceptor *acceptor = 0; 00056 00057 ACE_NEW_RETURN (acceptor, 00058 TAO_DIOP_Acceptor, 00059 0); 00060 00061 return acceptor; 00062 } |
|
Reimplemented from TAO_Protocol_Factory. Definition at line 72 of file DIOP_Factory.cpp. References ACE_NEW_RETURN.
00073 { 00074 TAO_Connector *connector = 0; 00075 00076 ACE_NEW_RETURN (connector, 00077 TAO_DIOP_Connector, 00078 0); 00079 return connector; 00080 } |
|
Verify prefix is a match.
Reimplemented from TAO_Protocol_Factory. Definition at line 34 of file DIOP_Factory.cpp. References ACE_OS::strcasecmp().
00035 { 00036 // Check for the proper prefix for this protocol. 00037 return (ACE_OS::strcasecmp (prefix.c_str (), ::the_prefix) == 0); 00038 } |
|
Return the character used to mark where an endpoint ends and where its options begin. Reimplemented from TAO_Protocol_Factory. Definition at line 47 of file DIOP_Factory.cpp.
00048 { 00049 return '/'; 00050 } |
|
Returns the prefix used by the protocol.
Reimplemented from TAO_Protocol_Factory. Definition at line 41 of file DIOP_Factory.cpp.
00042 { 00043 return ::the_prefix; 00044 } |
|
Implements TAO_Protocol_Factory. Definition at line 83 of file DIOP_Factory.cpp.
00084 { 00085 // This switch is actually meant to distinguish between pluggable 00086 // protocols which are able to clean up their endpoints and such 00087 // that aren't. E.g. UIOP will leave files, it therefore returns 1, 00088 // IIOP cleans up its endpoint resources, which therefore return 0. 00089 // 00090 // DIOP does clean up endpoint resources, but as DIOP is only 00091 // suitable for special environments, e.g. it supports only one-ways, 00092 // it returns 1 for an other reason than resource clean-up. 00093 00094 return 1; 00095 } |
|
Changing the version number can be used to provide backwards compatibility with old clients. Definition at line 74 of file DIOP_Factory.h. |
|
Definition at line 75 of file DIOP_Factory.h. |