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

📄 htbp_session.inl

📁 ACE自适配通信环境(ADAPTIVE Communication Environment)是可以自由使用、开放源码的面向对象(OO)框架(Framework)
💻 INL
字号:
// -*- C++ -*-//// HTBP_Session.inl,v 1.2 2005/11/27 12:11:35 ossama ExpACE_BEGIN_VERSIONED_NAMESPACE_DECLACE_INLINEvoidACE::HTBP::Session::reconnect (){  if (!this->closed_ && this->proxy_addr_)    {      if (inbound_ &&          inbound_->ace_stream().get_handle() == ACE_INVALID_HANDLE)        reconnect_i (inbound_);      if (outbound_ &&          outbound_->ace_stream().get_handle() == ACE_INVALID_HANDLE)        reconnect_i (outbound_);    }}ACE_INLINEvoidACE::HTBP::Session::inbound (ACE::HTBP::Channel *s){  this->inbound_ = s;}ACE_INLINEvoidACE::HTBP::Session::outbound (ACE::HTBP::Channel *s){  this->outbound_ = s;}ACE_INLINEACE::HTBP::Channel *ACE::HTBP::Session::inbound (void) const{  return this->inbound_;}ACE_INLINEconst ACE::HTBP::Session_Id_t&ACE::HTBP::Session::session_id(void) const{  return this->session_id_;}// I'm wondering if this should be coupled with a map update...?ACE_INLINEvoidACE::HTBP::Session::session_id (ACE_UINT32 id){  this->session_id_.id_ = id;}ACE_INLINEconst ACE_INET_Addr *ACE::HTBP::Session::proxy_addr (void) const{  return this->proxy_addr_;}ACE_INLINEconst ACE::HTBP::Addr &ACE::HTBP::Session::peer_addr (void) const{  return this->session_id_.peer_;}ACE_INLINEconst ACE::HTBP::Addr &ACE::HTBP::Session::local_addr (void) const{  return this->session_id_.local_;}ACE_INLINEvoidACE::HTBP::Session::proxy_addr (ACE_INET_Addr *pa, int destroy){  if (this->destroy_proxy_addr_)    delete this->proxy_addr_;  this->proxy_addr_ = pa;  this->destroy_proxy_addr_ = destroy;}ACE_INLINEintACE::HTBP::Session::sock_flags (void) const{  return this->sock_flags_;}//---------------------------------------------------------------------------ACE_INLINEu_longACE::HTBP::Session_Id_t::hash () const{  return id_; // + local.hash() + peer.hash();}ACE_INLINEboolACE::HTBP::Session_Id_t::operator ==(const ACE::HTBP::Session_Id_t &other) const{  return ((this->id_ == other.id_) &&          (this->local_ == other.local_) &&          (this->peer_ == other.peer_));}ACE_END_VERSIONED_NAMESPACE_DECL

⌨️ 快捷键说明

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