Freely Understood Nootropic Protocol. Every datagram starts with a u16 for the 'type' to select a 'parser'
PRINCIPLES:
IMPLEMENTATION:
GyudonAddict: Some of my ideas take inspiration from ChaosNet, but unlike that I think the focus should be on a protocol entirely designed for a single, two-way communication.
PACKET STRUCTURE: u16[4] header, consisting of
A packet can be controlled or uncontrolled, with a packet number of 1-65535 or 0, respectively. The control programs on each side will try to manage the well-ordering and retransmission of controlled packets.
PACKET TYPES:
#x0
: junk/debug packet, doesn't do anything special itself#xEOF
: end of connection, no longer receiving#xDEAD
: the control program has run into an unrecoverable state, no longer receiving. The details of the error can be put in the dataThe rest of the packet is data, which has yet to be decided.