#include <OW_PosixUnnamedPipe.hpp>
Inheritance diagram for OW_NAMESPACE::PosixUnnamedPipe:
Public Member Functions | |
PosixUnnamedPipe (EOpen doOpen=E_OPEN) | |
virtual | ~PosixUnnamedPipe () |
virtual int | write (const void *data, int dataLen, bool errorAsException=false) |
Write a specified number of bytes to the device that is exposing the IOIFC interface. | |
virtual int | read (void *buffer, int bufferLen, bool errorAsException=false) |
Read a specified number of bytes from the device that is exposing the IOIFC interface. | |
int | getInputHandle () |
int | getOutputHandle () |
virtual void | open () |
Open the pipe. | |
virtual int | close () |
Close the pipe. | |
virtual bool | isOpen () const |
Is the pipe open or closed? | |
int | closeInputHandle () |
int | closeOutputHandle () |
virtual void | setOutputBlocking (bool outputIsBlocking=true) |
virtual void | setBlocking (EBlockingMode outputIsBlocking=E_BLOCKING) |
virtual Select_t | getSelectObj () const |
virtual Select_t | getWriteSelectObj () const |
Get a write select object. | |
Private Attributes | |
int | m_fds [2] |
EBlockingMode | m_blocking |
Definition at line 47 of file OW_PosixUnnamedPipe.hpp.
|
Definition at line 211 of file OW_PosixUnnamedPipe.cpp. |
|
Definition at line 229 of file OW_PosixUnnamedPipe.cpp. References close(). |
|
Close the pipe.
Implements OW_NAMESPACE::UnnamedPipe. Definition at line 389 of file OW_PosixUnnamedPipe.cpp. Referenced by open(), and ~PosixUnnamedPipe(). |
|
Definition at line 427 of file OW_PosixUnnamedPipe.cpp. |
|
Definition at line 446 of file OW_PosixUnnamedPipe.cpp. |
|
Definition at line 54 of file OW_PosixUnnamedPipe.hpp. |
|
Definition at line 55 of file OW_PosixUnnamedPipe.hpp. |
|
Implements OW_NAMESPACE::SelectableIFC. Definition at line 575 of file OW_PosixUnnamedPipe.cpp. References m_fds. |
|
Get a write select object.
Implements OW_NAMESPACE::UnnamedPipe. Definition at line 592 of file OW_PosixUnnamedPipe.cpp. References m_fds. |
|
Is the pipe open or closed?
Implements OW_NAMESPACE::UnnamedPipe. Definition at line 420 of file OW_PosixUnnamedPipe.cpp. References m_fds. |
|
Open the pipe.
Implements OW_NAMESPACE::UnnamedPipe. Definition at line 321 of file OW_PosixUnnamedPipe.cpp. |
|
Read a specified number of bytes from the device that is exposing the IOIFC interface.
Implements OW_NAMESPACE::IOIFC. Definition at line 520 of file OW_PosixUnnamedPipe.cpp. References _READ, OW_NAMESPACE::SocketFlags::E_WAIT_FOR_INPUT, m_blocking, m_fds, OW_NAMESPACE::UnnamedPipe::m_readTimeout, OW_THROW_ERRNO_MSG, and OW_NAMESPACE::SocketUtils::waitForIO(). |
|
Definition at line 235 of file OW_PosixUnnamedPipe.cpp. References i, m_blocking, m_fds, OW_ASSERT, and OW_THROW_ERRNO_MSG. |
|
Implements OW_NAMESPACE::UnnamedPipe. Definition at line 281 of file OW_PosixUnnamedPipe.cpp. References OW_NAMESPACE::UnnamedPipe::E_NONBLOCKING, m_blocking, m_fds, OW_ASSERT, and OW_THROW_ERRNO_MSG. |
|
Write a specified number of bytes to the device that is exposing the IOIFC interface.
Implements OW_NAMESPACE::IOIFC. Definition at line 465 of file OW_PosixUnnamedPipe.cpp. References _WRITE, OW_NAMESPACE::SocketFlags::E_WAIT_FOR_OUTPUT, m_blocking, m_fds, OW_NAMESPACE::UnnamedPipe::m_writeTimeout, OW_THROW_ERRNO_MSG, and OW_NAMESPACE::SocketUtils::waitForIO(). |
|
Definition at line 71 of file OW_PosixUnnamedPipe.hpp. Referenced by read(), setBlocking(), setOutputBlocking(), and write(). |
|
Definition at line 66 of file OW_PosixUnnamedPipe.hpp. Referenced by close(), closeInputHandle(), closeOutputHandle(), getSelectObj(), getWriteSelectObj(), isOpen(), open(), read(), setBlocking(), setOutputBlocking(), and write(). |