oneway_receiver.cpp
来自「这是广泛使用的通信开源项目,对于大容量,高并发的通讯要求完全能够胜任,他广泛可用」· C++ 代码 · 共 50 行
CPP
50 行
//
// Oneway_Receiver.cpp,v 1.3 2002/01/29 20:21:11 okellogg Exp
//
#include "Oneway_Receiver.h"
#include "Shutdown_Helper.h"
ACE_RCSID(Reliable_Oneways, Oneway_Receiver, "Oneway_Receiver.cpp,v 1.3 2002/01/29 20:21:11 okellogg Exp")
Oneway_Receiver::Oneway_Receiver (CORBA::ORB_ptr orb)
: orb_ (CORBA::ORB::_duplicate (orb))
{
}
void
Oneway_Receiver::raise_no_permission (ACE_ENV_SINGLE_ARG_DECL)
ACE_THROW_SPEC ((CORBA::SystemException))
{
ACE_THROW (CORBA::NO_PERMISSION ());
}
void
Oneway_Receiver::destroy (ACE_ENV_SINGLE_ARG_DECL)
ACE_THROW_SPEC ((CORBA::SystemException))
{
PortableServer::POA_var poa = this->_default_POA (ACE_ENV_SINGLE_ARG_PARAMETER);
ACE_CHECK;
PortableServer::ObjectId_var id =
poa->servant_to_id (this ACE_ENV_ARG_PARAMETER);
ACE_CHECK;
poa->deactivate_object (id.in () ACE_ENV_ARG_PARAMETER);
ACE_CHECK;
}
Test::Shutdown_Helper_ptr
Oneway_Receiver::get_shutdown_helper (ACE_ENV_SINGLE_ARG_DECL)
ACE_THROW_SPEC ((CORBA::SystemException))
{
Shutdown_Helper *shutdown_helper;
ACE_NEW_THROW_EX (shutdown_helper,
Shutdown_Helper (this->orb_.in ()),
CORBA::NO_MEMORY ());
ACE_CHECK_RETURN (Test::Shutdown_Helper::_nil ());
PortableServer::ServantBase_var transfer_ownership(shutdown_helper);
return shutdown_helper->_this (ACE_ENV_SINGLE_ARG_PARAMETER);
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?