Phosphor
Qt6 / Wayland library suite for window-management tools
Loading...
Searching...
No Matches
Channel.h File Reference
#include <PhosphorChannel/phosphorchannel_export.h>
#include <cstddef>
#include <cstdint>
#include <string>
#include <string_view>

Go to the source code of this file.

Namespaces

namespace  PhosphorChannel

Enumerations

enum class  PhosphorChannel::WriteResult { PhosphorChannel::Written , PhosphorChannel::WouldBlock , PhosphorChannel::TooLarge , PhosphorChannel::Closed }
enum class  PhosphorChannel::ReadResult { PhosphorChannel::Frame , PhosphorChannel::Empty , PhosphorChannel::Closed , PhosphorChannel::Corrupt }

Functions

PHOSPHORCHANNEL_EXPORT bool PhosphorChannel::validCodec (std::string_view codec)
 1 to MaxCodecBytes of printable ASCII without spaces, such as "afterglow.state.v1".
PHOSPHORCHANNEL_EXPORT std::string PhosphorChannel::versionMismatch (std::uint32_t theirs)
 The message for two protocol versions that do not match.

Variables

constexpr std::uint32_t PhosphorChannel::ProtocolVersion = 1
 Covers the handshakes, the stream's packets and the ring's layout.
constexpr std::size_t PhosphorChannel::MaxCodecBytes = 64
 The longest codec tag, in bytes.