📄 io.cpp
字号:
// IO.cpp,v 1.3 2005/02/14 23:33:37 shuston Exp#ifndef JAWS_BUILD_DLL#define JAWS_BUILD_DLL#endif /*JAWS_BUILD_DLL*/#include "ace/OS_NS_strings.h"#include "jaws3/IO.h"#include "jaws3/Asynch_IO.h"#include "jaws3/Synch_IO.h"#include "jaws3/Reactive_IO.h"#include "jaws3/Options.h"JAWS_IO::JAWS_IO (JAWS_IO_Impl *impl) : impl_ (impl){ // Use synchronous IO by default. It is the most efficient // in terms of calls needed, but provides the least amount // of support for concurrency. if (this->impl_ == 0) { const char *io_type = JAWS_Options::instance ()->getenv ("JAWS_IO"); if (io_type == 0) io_type = JAWS_DEFAULT_IO; if (ACE_OS::strcasecmp (io_type, "SYNCH") == 0) this->impl_ = JAWS_Synch_IO::instance (); else if (ACE_OS::strcasecmp (io_type, "ASYNCH") == 0) this->impl_ = JAWS_Asynch_IO::instance (); else if (ACE_OS::strcasecmp (io_type, "REACTIVE") == 0) this->impl_ = JAWS_Reactive_IO::instance (); else this->impl_ = JAWS_Synch_IO::instance (); }}JAWS_IO::~JAWS_IO (void){}voidJAWS_IO::send ( ACE_HANDLE handle , ACE_Message_Block *mb , JAWS_Event_Completer *completer , void *act ){ this->impl_->send (handle, mb, completer, act);}voidJAWS_IO::recv ( ACE_HANDLE handle , ACE_Message_Block *mb , JAWS_Event_Completer *completer , void *act ){ this->impl_->recv (handle, mb, completer, act);}voidJAWS_IO::transmit ( ACE_HANDLE handle , ACE_HANDLE source , JAWS_Event_Completer *completer , void *act , ACE_Message_Block *header , ACE_Message_Block *trailer ){ this->impl_->transmit (handle, source, completer, act, header, trailer);}voidJAWS_IO::send ( ACE_HANDLE handle , ACE_Message_Block *mb , JAWS_Event_Completer *completer , const ACE_Time_Value &tv , void *act ){ this->impl_->send (handle, mb, completer, tv, act);}voidJAWS_IO::recv ( ACE_HANDLE handle , ACE_Message_Block *mb , JAWS_Event_Completer *completer , const ACE_Time_Value &tv , void *act ){ this->impl_->recv (handle, mb, completer, tv, act);}voidJAWS_IO::transmit ( ACE_HANDLE handle , ACE_HANDLE source , JAWS_Event_Completer *completer , const ACE_Time_Value &tv , void *act , ACE_Message_Block *header , ACE_Message_Block *trailer ){ this->impl_->transmit (handle, source, completer, tv, act, header, trailer);}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -