A pipe.
More...
#include <uringpp/pipe.h>
◆ pipe() [1/2]
uringpp::pipe::pipe |
( |
std::shared_ptr< event_loop > |
loop | ) |
|
|
inline |
Construct a new pipe object.
- Parameters
-
◆ pipe() [2/2]
uringpp::pipe::pipe |
( |
pipe && |
other | ) |
|
|
inlinenoexcept |
Move construct a new pipe object.
- Parameters
-
◆ ~pipe()
Destroy the pipe object. If any end of the pipe is still open, it will be closed.
◆ close()
task< void > uringpp::pipe::close |
( |
| ) |
|
|
inline |
Close the read and write ends of the pipe.
- Returns
- task<void>
◆ close_read()
task< void > uringpp::pipe::close_read |
( |
| ) |
|
|
inline |
Close the read end of the pipe.
- Returns
- task<void>
◆ close_write()
task< void > uringpp::pipe::close_write |
( |
| ) |
|
|
inline |
Close the write end of the pipe.
- Returns
- task<void>
◆ readable_fd()
int uringpp::pipe::readable_fd |
( |
| ) |
const |
|
inline |
Get the read end of the pipe.
- Returns
- int The read end of the pipe.
◆ writable_fd()
int uringpp::pipe::writable_fd |
( |
| ) |
const |
|
inline |
Get the write end of the pipe.
- Returns
- int The write end of the pipe.
The documentation for this class was generated from the following file: