7#include "./communicator.h"
9namespace AsyncBsdSocketLib
15 const std::string mPathname;
33 template <std::
size_t N>
34 ssize_t
Receive(std::array<uint8_t, N> &buffer) const noexcept
Communication method (i.e., network sockets and named pipes)
Definition: communicator.h:10
int FileDescriptor
File descriptor.
Definition: communicator.h:13
FIFO (named pipe) IPC receiver (reader)
Definition: fifo_receiver.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.