00001 // -*- C++ -*- 00002 // 00003 // $Id: IPC_SAP.inl 69051 2005-10-28 16:14:56Z ossama $ 00004 00005 #include "ace/OS_NS_stropts.h" 00006 00007 ACE_BEGIN_VERSIONED_NAMESPACE_DECL 00008 00009 ACE_INLINE 00010 ACE_IPC_SAP::~ACE_IPC_SAP (void) 00011 { 00012 // ACE_TRACE ("ACE_IPC_SAP::~ACE_IPC_SAP"); 00013 } 00014 00015 ACE_INLINE ACE_HANDLE 00016 ACE_IPC_SAP::get_handle (void) const 00017 { 00018 ACE_TRACE ("ACE_IPC_SAP::get_handle"); 00019 return this->handle_; 00020 } 00021 00022 // Used to set the underlying handle_. 00023 00024 ACE_INLINE void 00025 ACE_IPC_SAP::set_handle (ACE_HANDLE handle) 00026 { 00027 ACE_TRACE ("ACE_IPC_SAP::set_handle"); 00028 this->handle_ = handle; 00029 } 00030 00031 // Provides access to the ACE_OS::ioctl system call. 00032 00033 ACE_INLINE int 00034 ACE_IPC_SAP::control (int cmd, void *arg) const 00035 { 00036 ACE_TRACE ("ACE_IPC_SAP::control"); 00037 return ACE_OS::ioctl (this->handle_, cmd, arg); 00038 } 00039 00040 ACE_END_VERSIONED_NAMESPACE_DECL