6#include <PhosphorChannel/phosphorchannel_export.h>
41PHOSPHORCHANNEL_EXPORT
bool validCodec(std::string_view codec);
constexpr std::uint32_t ProtocolVersion
Covers the handshakes, the stream's packets and the ring's layout.
Definition Channel.h:34
WriteResult
Definition Channel.h:43
@ Closed
No frame can go any more: the reader closed the channel, the other process went away,...
Definition Channel.h:53
@ Written
Definition Channel.h:44
@ TooLarge
The frame can never fit this channel.
Definition Channel.h:50
@ WouldBlock
The channel is full.
Definition Channel.h:48
ReadResult
Definition Channel.h:56
@ Frame
Definition Channel.h:57
@ Corrupt
The other process broke the protocol, so nothing after it can be trusted.
Definition Channel.h:65
@ Empty
No frame waits now. Wait until the transport says that one came.
Definition Channel.h:59
PHOSPHORCHANNEL_EXPORT std::string versionMismatch(std::uint32_t theirs)
The message for two protocol versions that do not match.
PHOSPHORCHANNEL_EXPORT bool validCodec(std::string_view codec)
1 to MaxCodecBytes of printable ASCII without spaces, such as "afterglow.state.v1".
constexpr std::size_t MaxCodecBytes
The longest codec tag, in bytes.
Definition Channel.h:37