Expand description
This module implements the relaying protocol used the crate::server and crate::client.
Protocol flow:
Login:
- client connects
- -> client sends
FrameType::ClientInfo
Steady state:
- server occasionally sends
FrameType::KeepAlive(orFrameType::Ping) - client responds to any
FrameType::Pingwith aFrameType::Pong - clients sends
FrameType::SendPacket - server then sends
FrameType::RecvPacketto recipient
Constantsยง
- The maximum size of a packet sent over relay. (This only includes the data bytes visible to magicsock, not including its on-wire framing overhead)