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

📄 htbp_channel.inl

📁 ace开发环境 用来开发网络程序 其运用了设计模式、多平台、C++等多种知识
💻 INL
字号:
// -*- C++ -*-//// $Id: HTBP_Channel.inl 69669 2005-11-27 12:11:35Z ossama $ACE_BEGIN_VERSIONED_NAMESPACE_DECLACE_INLINEACE::HTBP::Session *ACE::HTBP::Channel::session (void) const{  return this->session_;}// session assignment only occurs when the stream is transferred to another// session. Do *not* delete the old session object.ACE_INLINEvoidACE::HTBP::Channel::session (ACE::HTBP::Session *s){  this->session_ = s;}// I'm not sure of the proper use case for getting the filter reference. The// problem is that the filter is not reference counted, so the returned value// should not be stored.ACE_INLINEACE::HTBP::Filter *ACE::HTBP::Channel::filter (void) const{  return this->filter_;}// Filters are owned by the channel. If a new filter is applied, the old one// must be deleted.ACE_INLINEvoidACE::HTBP::Channel::filter (ACE::HTBP::Filter *f){  if (this->filter_)    delete this->filter_;  this->filter_ = f;}ACE_INLINEintACE::HTBP::Channel::close_reader (void){  return this->ace_stream_.close_reader();}ACE_INLINEintACE::HTBP::Channel::close_writer (void){  return this->ace_stream_.close_writer();}ACE_INLINEintACE::HTBP::Channel::close (void){  return this->ace_stream_.close();}ACE_INLINEACE::HTBP::Channel::StateACE::HTBP::Channel::state (void) const{  return this->state_;}ACE_INLINEACE_Message_Block &ACE::HTBP::Channel::leftovers (void){  return this->leftovers_;}ACE_INLINEsize_tACE::HTBP::Channel::data_len(void) const{  return this->data_len_;}ACE_INLINEvoidACE::HTBP::Channel::data_len(size_t n){  this->data_len_ = n;}ACE_INLINEsize_tACE::HTBP::Channel::data_consumed(void) const{  return this->data_consumed_;}ACE_INLINEconst ACE_SOCK_Stream&ACE::HTBP::Channel::ace_stream (void) const{  return this->ace_stream_;}ACE_INLINEACE_SOCK_Stream&ACE::HTBP::Channel::ace_stream (void){  return this->ace_stream_;}ACE_INLINEvoidACE::HTBP::Channel::set_handle (ACE_HANDLE h){  if (h == 0)    return;  this->ace_stream_.set_handle (h);}ACE_END_VERSIONED_NAMESPACE_DECL

⌨️ 快捷键说明

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