Why: Pipe#

class Pipe#

A pipe is used to communicate unstructured data (without fixed message boundaries).

Public Functions

inline std::expected<std::size_t, Why::OSError> read(uint8_t *buffer, size_t len)#
inline std::expected<std::size_t, Why::OSError> read_noblock(uint8_t *buffer, size_t len)#
inline std::expected<std::size_t, Why::OSError> write(const uint8_t *buffer, size_t len)#
inline std::expected<std::size_t, Why::OSError> write_noblock(const uint8_t *buffer, size_t len)#
inline bool ok() const#
inline int _pollfd() const#

Public Static Functions

static std::expected<Pipe, OSError> create()#

Create a pipe