#include <PosixUnnamedPipe.hpp>
Inheritance diagram for BLOCXX_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 | 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 49 of file PosixUnnamedPipe.hpp.
|
Definition at line 212 of file PosixUnnamedPipe.cpp. |
|
Definition at line 230 of file PosixUnnamedPipe.cpp. References close(). |
|
Close the pipe.
Implements BLOCXX_NAMESPACE::UnnamedPipe. Definition at line 350 of file PosixUnnamedPipe.cpp. Referenced by open(), and ~PosixUnnamedPipe(). |
|
Definition at line 388 of file PosixUnnamedPipe.cpp. |
|
Definition at line 407 of file PosixUnnamedPipe.cpp. |
|
Definition at line 56 of file PosixUnnamedPipe.hpp. |
|
Definition at line 57 of file PosixUnnamedPipe.hpp. |
|
Implements BLOCXX_NAMESPACE::SelectableIFC. Definition at line 536 of file PosixUnnamedPipe.cpp. References m_fds. |
|
Get a write select object.
Implements BLOCXX_NAMESPACE::UnnamedPipe. Definition at line 553 of file PosixUnnamedPipe.cpp. References m_fds. |
|
Is the pipe open or closed?
Implements BLOCXX_NAMESPACE::UnnamedPipe. Definition at line 381 of file PosixUnnamedPipe.cpp. References m_fds. |
|
Open the pipe.
Implements BLOCXX_NAMESPACE::UnnamedPipe. Definition at line 282 of file PosixUnnamedPipe.cpp. References BLOCXX_THROW, close(), and m_fds. |
|
Read a specified number of bytes from the device that is exposing the IOIFC interface.
Implements BLOCXX_NAMESPACE::IOIFC. Definition at line 481 of file PosixUnnamedPipe.cpp. References _READ, BLOCXX_THROW_ERRNO_MSG, BLOCXX_NAMESPACE::SocketFlags::E_WAIT_FOR_INPUT, m_blocking, m_fds, BLOCXX_NAMESPACE::UnnamedPipe::m_readTimeout, and BLOCXX_NAMESPACE::SocketUtils::waitForIO(). |
|
Definition at line 236 of file PosixUnnamedPipe.cpp. References BLOCXX_ASSERT, BLOCXX_THROW_ERRNO_MSG, i, m_blocking, and m_fds. |
|
Write a specified number of bytes to the device that is exposing the IOIFC interface.
Implements BLOCXX_NAMESPACE::IOIFC. Definition at line 426 of file PosixUnnamedPipe.cpp. References _WRITE, BLOCXX_THROW_ERRNO_MSG, BLOCXX_NAMESPACE::SocketFlags::E_WAIT_FOR_OUTPUT, m_blocking, m_fds, BLOCXX_NAMESPACE::UnnamedPipe::m_writeTimeout, and BLOCXX_NAMESPACE::SocketUtils::waitForIO(). |
|
Definition at line 72 of file PosixUnnamedPipe.hpp. Referenced by read(), setBlocking(), and write(). |
|
Definition at line 67 of file PosixUnnamedPipe.hpp. Referenced by close(), closeInputHandle(), closeOutputHandle(), getSelectObj(), getWriteSelectObj(), isOpen(), open(), read(), setBlocking(), and write(). |