#include <IOIFC.hpp>
Definition at line 46 of file IOIFC.hpp.
◆ ErrorAction
Enumerator |
---|
E_THROW_ON_ERROR | |
E_RETURN_ON_ERROR | |
Definition at line 51 of file IOIFC.hpp.
◆ ~IOIFC()
BLOCXX_NAMESPACE::IOIFC::~IOIFC |
( |
| ) |
|
|
virtual |
◆ read()
Read a specified number of bytes from the device that is exposing the IOIFC interface.
- Parameters
-
dataIn | A pointer to a location in memory to put the bytes that have been read. |
dataInLen | The number of bytes being requested from the device. |
errorAsException | If true and an error occurs durring the read operation, then throw an exception. |
- Exceptions
-
An | exception will be thrown upon an error condition if errorAsException is true. |
- Returns
- The number of bytes actually read from the device, or -1 on error. If the device is set to nonblocking and no input is available, -1 will be returned and errno will be set to ETIMEDOUT
Implemented in BLOCXX_NAMESPACE::PosixUnnamedPipe, BLOCXX_NAMESPACE::Socket, and BLOCXX_NAMESPACE::SocketBaseImpl.
References E_RETURN_ON_ERROR.
Referenced by BLOCXX_NAMESPACE::PosixUnnamedPipe::passDescriptor(), BLOCXX_NAMESPACE::Exec::processInputOutput(), BLOCXX_NAMESPACE::UnnamedPipe::readAll(), BLOCXX_NAMESPACE::UnnamedPipe::readInt(), BLOCXX_NAMESPACE::UnnamedPipe::readString(), and BLOCXX_NAMESPACE::PosixExec::spawnImpl().
◆ write()
The documentation for this class was generated from the following files: