Expand description
Yog Data over a byte stream — a socket, a pipe: each message a frame,
its length (a little-endian u32) and then its binary form. What Yog’s
programs say to each other (the game’s control channel, yog serve).
Constants§
- MAX_
FRAME - The longest frame read: anything longer is a broken or hostile peer.
Functions§
- read_
frame - The next message;
Nonewhere the stream ends between frames. - read_
frame_ bytes - The next frame’s bytes;
Nonewhere the stream ends between frames. - write_
frame - Writes
messageas one frame, and flushes. - write_
frame_ bytes - Writes
bytes(a message’s binary form) as one frame, and flushes.
Type Aliases§
- Len
- How a frame’s length is written.