|
| NamedPipe (const NamedPipe &)=delete |
|
NamedPipe & | operator= (const NamedPipe &)=delete |
|
| NamedPipe () noexcept |
| For compatibility with IpcChannel alias, default ctor which creates an uninitialized NamedPipe.
|
|
| NamedPipe (NamedPipe &&rhs) noexcept |
|
NamedPipe & | operator= (NamedPipe &&rhs) noexcept |
|
cxx::expected< IpcChannelError > | destroy () noexcept |
| destroys an initialized named pipe. More...
|
|
cxx::expected< bool, IpcChannelError > | isOutdated () noexcept |
| for compatibility with IpcChannelError More...
|
|
cxx::expected< IpcChannelError > | trySend (const std::string &message) const noexcept |
| tries to send a message via the named pipe. if the pipe is full IpcChannelError::TIMEOUT is returned More...
|
|
cxx::expected< IpcChannelError > | send (const std::string &message) const noexcept |
| sends a message via the named pipe. if the pipe is full this call is blocking until the message could be delivered More...
|
|
cxx::expected< IpcChannelError > | timedSend (const std::string &message, const units::Duration &timeout) const noexcept |
| sends a message via the named pipe. More...
|
|
cxx::expected< std::string, IpcChannelError > | tryReceive () const noexcept |
| tries to receive a message via the named pipe. if the pipe is empty IpcChannelError::TIMEOUT is returned More...
|
|
cxx::expected< std::string, IpcChannelError > | receive () const noexcept |
| receives a message via the named pipe. if the pipe is empty this call is blocking until a message was received More...
|
|
cxx::expected< std::string, IpcChannelError > | timedReceive (const units::Duration &timeout) const noexcept |
| receives a message via the named pipe. More...
|
|
| Creation (Creation &&rhs) noexcept |
|
| Creation (const Creation &rhs) noexcept=default |
|
Creation & | operator= (Creation &&rhs) noexcept |
|
Creation & | operator= (const Creation &rhs) noexcept=default |
|
bool | isInitialized () const noexcept |
| returns true if the object was constructed successfully, otherwise false
|
|
|
static cxx::expected< bool, IpcChannelError > | unlinkIfExists (const IpcChannelName_t &name) noexcept |
| removes a named pipe artifact from the system More...
|
|
static result_t | create (Targs &&... args) noexcept |
| factory method which guarantees that either a working object is produced or an error value describing the error during construction More...
|
|
static result_t | verify (NamedPipe &&newObject) noexcept |
| verifies if a class was created successfully More...
|
|
static iox::cxx::expected< IpcChannelError > | placementCreate (void *const memory, Targs &&... args) noexcept |
| factory method which guarantees that either a working object is produced or an error value describing the error during construction More...
|
|
|
static constexpr uint64_t | MAX_MESSAGE_SIZE = 4U * 1024U |
|
static constexpr uint64_t | MAX_NUMBER_OF_MESSAGES = 10U |
|
static constexpr uint64_t | NULL_TERMINATOR_SIZE = 0U |
|
static constexpr units::Duration | CYCLE_TIME = units::Duration::fromMilliseconds(10) |
|
static constexpr const char | NAMED_PIPE_PREFIX [] = "iox_np_" |
|