7#include "./communicator.h"
9namespace AsyncBsdSocketLib
12 class FifoReceiver :
public Communicator
15 const std::string mPathname;
18 FifoReceiver() =
delete;
33 template <std::
size_t N>
34 ssize_t
Receive(std::array<uint8_t, N> &buffer) const noexcept
int FileDescriptor
File descriptor.
Definition communicator.h:13
ssize_t Receive(std::array< uint8_t, N > &buffer) const noexcept
Receive a byte array from the FIFO pipe.
Definition fifo_receiver.h:34
FifoReceiver(std::string pathname)
Constructor.
bool TrySetup() noexcept override
Try to setup the communicator.
int Connection() const noexcept override
Connection descriptor for sending and receiving.