|
| | Pipe () |
| | Pipe (const Pipe &)=delete |
| | Pipe (Pipe &&pipe)=delete |
| virtual | ~Pipe () |
| Pipe & | operator= (const Pipe &)=delete |
| Pipe & | operator= (Pipe &&pipe)=delete |
| void * | reader () const noexcept |
| | Get the native read endpoint handler.
|
| void * | writer () const noexcept |
| | Get the native write endpoint handler.
|
| bool | IsPipeOpened () const noexcept |
| | Is pipe opened for reading or writing?
|
| bool | IsPipeReadOpened () const noexcept |
| | Is pipe opened for reading?
|
| bool | IsPipeWriteOpened () const noexcept |
| | Is pipe opened for writing?
|
| size_t | Read (void *buffer, size_t size) override |
| | Read a bytes buffer from the pipe.
|
| size_t | Write (const void *buffer, size_t size) override |
| | Write a byte buffer into the pipe.
|
| void | CloseRead () |
| | Close the read pipe endpoint.
|
| void | CloseWrite () |
| | Close the write pipe endpoint.
|
| void | Close () |
| | Close all pipe endpoints.
|
| void | swap (Pipe &pipe) noexcept |
| | Swap two instances.
|
| std::vector< uint8_t > | ReadAllBytes () |
| | Read all bytes.
|
| std::string | ReadAllText () |
| | Read all text.
|
| std::vector< std::string > | ReadAllLines () |
| | Read all text lines.
|
| size_t | Write (const std::string &text) |
| | Write a text string.
|
| size_t | Write (const std::vector< std::string > &lines) |
| | Write text lines.
|
| | Reader () noexcept=default |
| | Reader (const Reader &) noexcept=default |
| | Reader (Reader &&) noexcept=default |
| virtual | ~Reader () noexcept=default |
| Reader & | operator= (const Reader &) noexcept=default |
| Reader & | operator= (Reader &&) noexcept=default |
| std::vector< uint8_t > | ReadAllBytes () |
| | Read all bytes.
|
| std::string | ReadAllText () |
| | Read all text.
|
| std::vector< std::string > | ReadAllLines () |
| | Read all text lines.
|
| | Writer () noexcept=default |
| | Writer (const Writer &) noexcept=default |
| | Writer (Writer &&) noexcept=default |
| virtual | ~Writer () noexcept=default |
| Writer & | operator= (const Writer &) noexcept=default |
| Writer & | operator= (Writer &&) noexcept=default |
| size_t | Write (const std::string &text) |
| | Write a text string.
|
| size_t | Write (const std::vector< std::string > &lines) |
| | Write text lines.
|
| virtual void | Flush () |
| | Flush the writer.
|
Pipe.
A pipe is a section of shared memory that processes use for communication. The process that creates a pipe is the pipe server. A process that connects to a pipe is a pipe client. One process writes information to the pipe, then the other process reads the information from the pipe. This overview describes how to create, manage, and use pipes.
Not thread-safe.
- Examples
- system_pipe.cpp, and system_process_pipes.cpp.
Definition at line 30 of file pipe.h.