serverrequestinfo.inl
来自「这是广泛使用的通信开源项目,对于大容量,高并发的通讯要求完全能够胜任,他广泛可用」· INL 代码 · 共 54 行
INL
54 行
// -*- C++ -*-
//
// ServerRequestInfo.inl,v 1.4 2001/09/24 08:28:41 othman Exp
ACE_INLINE void
TAO_ServerRequestInfo::exception (CORBA::Exception *exception)
{
if (CORBA::SystemException::_downcast (exception) != 0)
this->reply_status_ = PortableInterceptor::SYSTEM_EXCEPTION;
else if (CORBA::UserException::_downcast (exception) != 0)
this->reply_status_ = PortableInterceptor::USER_EXCEPTION;
// @@ Is it possible for both of the above downcasts to fail?
this->caught_exception_ = exception;
}
ACE_INLINE void
TAO_ServerRequestInfo::reply_status (PortableInterceptor::ReplyStatus s)
{
this->reply_status_ = s;
}
ACE_INLINE void
TAO_ServerRequestInfo::forward_reference (
PortableInterceptor::ForwardRequest &exc)
{
// Note that we're converting the ForwardRequest exception in to a
// LOCATION_FORWARD reply, so we do not set the exception status.
this->reply_status_ = PortableInterceptor::LOCATION_FORWARD;
// Store the forward reference in the TAO_ServerRequest object.
this->server_request_.forward_location (exc.forward.in ());
}
ACE_INLINE void
TAO_ServerRequestInfo::forward_reference (CORBA::Object_ptr obj)
{
// We only get here if a servant manager threw a
// PortableServer::ForwardRequest exception.
this->reply_status_ = PortableInterceptor::LOCATION_FORWARD;
// Store the forward reference in the TAO_ServerRequest object.
this->server_request_.forward_location (obj);
}
ACE_INLINE TAO_ServerRequest &
TAO_ServerRequestInfo::server_request (void)
{
return this->server_request_;
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?