⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 servant_base.i

📁 这是广泛使用的通信开源项目,对于大容量,高并发的通讯要求完全能够胜任,他广泛可用于网络游戏医学图像网关的高qos要求.更详细的内容可阅读相应的材料
💻 I
字号:
// Servant_Base.i,v 1.8 2003/05/01 18:30:35 ossama Exp

ACE_INLINE u_long
TAO_Servant_Hash::operator () (PortableServer::Servant servant) const
{
  return ACE_static_cast (u_long,
                          ACE_reinterpret_cast (ptrdiff_t, servant));
}

ACE_INLINE TAO_Stub *
TAO_Local_ServantBase::_create_stub (ACE_ENV_SINGLE_ARG_DECL)
{
#if 0
  PortableServer::ObjectId_var invalid_oid =
    PortableServer::string_to_ObjectId ("invalid");

  TAO::ObjectKey tmp_key (invalid_oid->length (),
                          invalid_oid->length (),
                          invalid_oid->get_buffer (),
                          0);

  // It is ok to use TAO_ORB_Core_instance here since the locality
  // constrained servant does not really register with a POA or get
  // exported remotely.
  //
  // The correct thing to do is to probably use ORB of the default
  // POA. The unfortunate part is that calling default_POA() requires
  // the creation of a local stub, hence causing a infinite loop.
  return TAO_ORB_Core_instance ()->orb ()->create_stub_object (tmp_key,
                                                               this->_interface_repository_id ()
                                                               ACE_ENV_ARG_PARAMETER);
#else
# if !defined (ACE_HAS_EXCEPTIONS)
  ACE_UNUSED_ARG (ACE_ENV_SINGLE_ARG_PARAMETER);
#endif
  return 0;
#endif
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -