factory library

Factory layer: datagram validation and per-kind instruction factories.

Import this facade to decode received datagrams or to build instruction packets (SYN?/SYN!/ACK!, FAIL/DONE, ACPT/DENY, PING/PONG, FIN?/FIN!, NOOP, DATA/COPY). MessagePacketFactory performs the shared wire validation; BridgePacketFactory and DirectPacketFactory extend it with the B-bit filter and their instruction builders.

Classes

BridgePacketFactory
Creates and parses bridge packets (B=1, client <-> server).
DirectPacketFactory
Creates and parses direct packets (B=0, client <-> client).
MessagePacketFactory
Validate a raw datagram and decode its header fields.