7#include <PhosphorChannel/phosphorchannel_export.h>
42PHOSPHORCHANNEL_EXPORT
bool offerRing(
int socket,
RingWriter& ring,
int timeoutMs, std::string* error);
static constexpr std::size_t MaxCapacity
Definition Ring.h:53
PHOSPHORCHANNEL_EXPORT std::unique_ptr< RingReader > acceptRing(int socket, const AcceptOptions &options, int timeoutMs, std::string *error)
Receives a ring over socket, maps it, and answers whether it took it.
PHOSPHORCHANNEL_EXPORT bool offerRing(int socket, RingWriter &ring, int timeoutMs, std::string *error)
Sends ring over socket and waits for the answer.
What a reader takes.
Definition Handshake.h:32
std::size_t maxCapacity
The largest data area, in bytes.
Definition Handshake.h:34
std::vector< std::string > codecs
The codecs that this end reads. Empty: any.
Definition Handshake.h:36