An interprocess or interthread pipe for sending tokens (one-byte values) over.
More...
#include <tokenpipe.h>
An interprocess or interthread pipe for sending tokens (one-byte values) over.
Definition at line 75 of file tokenpipe.h.
◆ TokenPipe() [1/3]
| TokenPipe::TokenPipe |
( |
int | fds[2] | ) |
|
|
inlineprivate |
◆ ~TokenPipe()
| TokenPipe::~TokenPipe |
( |
| ) |
|
◆ TokenPipe() [2/3]
◆ TokenPipe() [3/3]
◆ Close()
| void TokenPipe::Close |
( |
| ) |
|
Close and end of the pipe that hasn't been moved out.
Definition at line 102 of file tokenpipe.cpp.
◆ Make()
| std::optional< TokenPipe > TokenPipe::Make |
( |
| ) |
|
|
static |
Create a new pipe.
- Returns
- The created TokenPipe, or an empty std::nullopt in case of error.
Definition at line 82 of file tokenpipe.cpp.
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ TakeReadEnd()
Take the read end of this pipe.
This can only be called once, as the object will be moved out.
Definition at line 15 of file tokenpipe.cpp.
◆ TakeWriteEnd()
Take the write end of this pipe.
This should only be called once, as the object will be moved out.
Definition at line 22 of file tokenpipe.cpp.
◆ m_fds
| int TokenPipe::m_fds[2] = {-1, -1} |
|
private |
The documentation for this class was generated from the following files: