Expand description
The HELLO handshake.
client -> control 7878 : HELLO <version> <kind> <name>\n
server -> : PORT <n>\n (or ERR <reason>\n)<kind> is tokens or trace.
A first line that is not a HELLO is not an error: the connection is
treated as a raw anonymous stream defaulting to the tokens kind, so
nc host 7878 < capture.txt works with no ceremony.
Enums§
- Hello
Error - Why a line was not a usable
HELLO. - Stream
Kind - What kind of stream a session renders.
Constants§
- NAME_
MAX - Maximum session-name length, in bytes.
- PROTOCOL_
VERSION - The protocol version this console speaks. The single source of truth for
what a
HELLOmust claim to be accepted.
Functions§
- parse_
hello - Parses one handshake line, returning the stream kind and session name.