Connection

struct Connection : public roq::io::Receiver, public roq::io::Sender

Public Functions

virtual ~Connection()
virtual void close() = 0
virtual size_t recvmsg(std::span<std::byte> const&, std::span<int> const&) = 0
virtual size_t sendmsg(std::span<std::byte const> const&, std::span<int const> const&) = 0
struct Connected
struct Disconnected
struct Factory

Public Functions

virtual std::unique_ptr<Connection> create(Handler&) = 0
struct Handler

Public Functions

virtual void operator()(Read const&) = 0
inline virtual void operator()(Write const&)
inline virtual void operator()(Connected const&)
virtual void operator()(Disconnected const&) = 0
struct Read

Public Members

size_t available_bytes = {}
struct Write