diff options
Diffstat (limited to 'TAO/tao/IIOP_Factory.cpp')
-rw-r--r-- | TAO/tao/IIOP_Factory.cpp | 71 |
1 files changed, 0 insertions, 71 deletions
diff --git a/TAO/tao/IIOP_Factory.cpp b/TAO/tao/IIOP_Factory.cpp deleted file mode 100644 index a087cada07c..00000000000 --- a/TAO/tao/IIOP_Factory.cpp +++ /dev/null @@ -1,71 +0,0 @@ -// $Id$ - -#include "tao/IIOP_Factory.h" -#include "tao/IIOP_Acceptor.h" -#include "tao/IIOP_Connector.h" -#include "ace/Dynamic_Service.h" - -ACE_RCSID(tao, IIOP_Factory, "$Id$") - - -TAO_IIOP_Protocol_Factory::TAO_IIOP_Protocol_Factory (void) - : major_ (TAO_DEF_GIOP_MAJOR), - minor_ (TAO_DEF_GIOP_MINOR) -{ -} - -TAO_IIOP_Protocol_Factory::~TAO_IIOP_Protocol_Factory (void) -{ -} - -int -TAO_IIOP_Protocol_Factory::match_prefix (const ACE_CString &prefix) -{ - const char *protocol[] = { "iiop", "iioploc" }; - // This is valid for any protocol beginning with `iiop' or `iioploc'. - - // Check for the proper prefix in the IOR. If the proper prefix isn't - // in the IOR then it is not an IOR we can use. - return (ACE_OS::strcasecmp (prefix.c_str (), protocol[0]) == 0 || - ACE_OS::strcasecmp (prefix.c_str (), protocol[1]) == 0); -} - -TAO_Acceptor * -TAO_IIOP_Protocol_Factory::make_acceptor (void) -{ - TAO_Acceptor *acceptor = 0; - - ACE_NEW_RETURN (acceptor, - TAO_IIOP_Acceptor, - 0); - - return acceptor; -} - -int -TAO_IIOP_Protocol_Factory::init (int /* argc */, - char* /* argv */ []) -{ - return 0; -} - -TAO_Connector * -TAO_IIOP_Protocol_Factory::make_connector (void) -{ - TAO_Connector *connector = 0; - - ACE_NEW_RETURN (connector, - TAO_IIOP_Connector, - 0); - return connector; -} - -ACE_STATIC_SVC_DEFINE (TAO_IIOP_Protocol_Factory, - ASYS_TEXT ("IIOP_Factory"), - ACE_SVC_OBJ_T, - &ACE_SVC_NAME (TAO_IIOP_Protocol_Factory), - ACE_Service_Type::DELETE_THIS | - ACE_Service_Type::DELETE_OBJ, - 0) - -ACE_FACTORY_DEFINE (TAO, TAO_IIOP_Protocol_Factory) |