Registry/mediator for named IPC channels.
More...
#include <ipc_manager.h>
|
| std::unique_ptr< Impl > | impl_ |
Registry/mediator for named IPC channels.
IpcManager owns channel lifetimes and provides lookup by name.
Definition at line 17 of file ipc_manager.h.
◆ IpcManager() [1/3]
| contur::IpcManager::IpcManager |
( |
| ) |
|
◆ ~IpcManager()
| contur::IpcManager::~IpcManager |
( |
| ) |
|
◆ IpcManager() [2/3]
| contur::IpcManager::IpcManager |
( |
const IpcManager & | | ) |
|
|
delete |
◆ IpcManager() [3/3]
| contur::IpcManager::IpcManager |
( |
IpcManager && | | ) |
|
|
noexcept |
◆ channelCount()
| std::size_t contur::IpcManager::channelCount |
( |
| ) |
const |
|
nodiscardnoexcept |
Number of registered channels.
◆ createMessageQueue()
| Result< void > contur::IpcManager::createMessageQueue |
( |
const std::string & | name, |
|
|
std::size_t | maxMessages = 64, |
|
|
bool | priorityMode = false ) |
|
nodiscard |
Creates a message queue channel if it does not already exist.
- Parameters
-
| name | Channel name. |
| maxMessages | Maximum queued messages. |
| priorityMode | True enables priority ordering. |
- Returns
- Ok on success, InvalidArgument on invalid input.
◆ createPipe()
| Result< void > contur::IpcManager::createPipe |
( |
const std::string & | name, |
|
|
std::size_t | capacity = 1024 ) |
|
nodiscard |
Creates a pipe channel if it does not already exist.
- Parameters
-
| name | Channel name. |
| capacity | Pipe capacity in bytes. |
- Returns
- Ok on success, InvalidArgument on invalid input.
◆ createSharedMemory()
| Result< void > contur::IpcManager::createSharedMemory |
( |
const std::string & | name, |
|
|
std::size_t | bytes ) |
|
nodiscard |
Creates a shared-memory channel if it does not already exist.
- Parameters
-
| name | Channel name. |
| bytes | Shared-memory size in bytes. |
- Returns
- Ok on success, InvalidArgument on invalid input.
◆ destroyChannel()
| Result< void > contur::IpcManager::destroyChannel |
( |
const std::string & | name | ) |
|
|
nodiscard |
Destroys a channel by name.
- Returns
- Ok on success or NotFound.
◆ exists()
| bool contur::IpcManager::exists |
( |
const std::string & | name | ) |
const |
|
nodiscardnoexcept |
Checks whether a named channel exists.
◆ getChannel()
| Result< std::reference_wrapper< IIpcChannel > > contur::IpcManager::getChannel |
( |
const std::string & | name | ) |
|
|
nodiscard |
Looks up a channel by name.
- Returns
- Reference to channel or NotFound.
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ impl_
| std::unique_ptr<Impl> contur::IpcManager::impl_ |
|
private |
The documentation for this class was generated from the following file: