Defines the member functions for the base class of the ACE_SPIPE abstraction. More...
#include <SPIPE.h>
Public Member Functions | |
int | close (void) |
Close down the SPIPE without removing the rendezvous point. | |
int | remove (void) |
int | get_local_addr (ACE_SPIPE_Addr &) const |
Return the local address of this endpoint. | |
int | disable (int signum) const |
void | dump (void) const |
Dump the state of an object. | |
Public Attributes | |
ACE_ALLOC_HOOK_DECLARE | |
Declare the dynamic allocation hooks. | |
Protected Member Functions | |
ACE_SPIPE (void) | |
Ensure that this class is an abstract base class. | |
Protected Attributes | |
ACE_SPIPE_Addr | local_addr_ |
Our local address. |
Defines the member functions for the base class of the ACE_SPIPE abstraction.
ACE_SPIPE was designed as a wrapper facade for STREAM pipes. On Windows, however, ACE_SPIPE is a wrapper for Named Pipes. Therefore, on Windows, it is better to use the ACE_Proactor or blocking operations in lieu of using the ACE_Reactor.
ACE_HAS_STREAM_PIPES
is defined. Definition at line 46 of file SPIPE.h.
ACE_SPIPE::ACE_SPIPE | ( | void | ) | [protected] |
int ACE_SPIPE::close | ( | void | ) |
Close down the SPIPE without removing the rendezvous point.
Closes the underlying pipe handle and sets this object's handle value to ACE_INVALID_HANDLE
.
Reimplemented in ACE_SPIPE_Acceptor.
Definition at line 45 of file SPIPE.cpp.
{ ACE_TRACE ("ACE_SPIPE::close"); int result = 0; if (this->get_handle () != ACE_INVALID_HANDLE) { result = ACE_OS::close (this->get_handle ()); #if defined (ACE_HAS_STREAM_PIPES) result = (ACE_OS::close (duplex_pipe_handle_) || result); #endif /* ACE_HAS_STREAM_PIPES */ this->set_handle (ACE_INVALID_HANDLE); } return result; }
int ACE_SPIPE::disable | ( | int | signum | ) | const |
Disable signal
Reimplemented from ACE_IPC_SAP.
Definition at line 8 of file SPIPE.inl.
{ #if defined (ACE_WIN32) ACE_UNUSED_ARG (signum) ; return 0 ; #else /* ACE_WIN32 */ return ACE_IPC_SAP::disable (signum) ; #endif /* ACE_WIN32 */ }
void ACE_SPIPE::dump | ( | void | ) | const |
Dump the state of an object.
Reimplemented from ACE_IPC_SAP.
Reimplemented in ACE_SPIPE_Acceptor, and ACE_SPIPE_Stream.
Definition at line 25 of file SPIPE.cpp.
{ #if defined (ACE_HAS_DUMP) ACE_TRACE ("ACE_SPIPE::dump"); #endif /* ACE_HAS_DUMP */ }
int ACE_SPIPE::get_local_addr | ( | ACE_SPIPE_Addr & | local_sap | ) | const |
Return the local address of this endpoint.
Returns the local address of the SPIPE's endpoint in
Definition at line 35 of file SPIPE.cpp.
{ ACE_TRACE ("ACE_SPIPE::get_local_addr"); local_sap = this->local_addr_; return 0; }
int ACE_SPIPE::remove | ( | void | ) |
Close down the SPIPE and remove the rendezvous point from the file system.
Reimplemented in ACE_SPIPE_Acceptor.
Definition at line 65 of file SPIPE.cpp.
{ ACE_TRACE ("ACE_SPIPE::remove"); int result = this->close (); return ACE_OS::unlink (this->local_addr_.get_path_name ()) == -1 || result == -1 ? -1 : 0; }
Declare the dynamic allocation hooks.
Reimplemented from ACE_IPC_SAP.
Reimplemented in ACE_SPIPE_Acceptor, and ACE_SPIPE_Stream.
ACE_SPIPE_Addr ACE_SPIPE::local_addr_ [protected] |