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 numbers roll over back to 1.
PACKET TYPES:
#x0
: junk/debug packet, doesn't do anything special itself#x51DE
: read: 'slide', tells the other end our current window size, with a u16 in the data#xDEAD
: the control program has run into an unrecoverable state, no longer receiving. The details of the error can be put in the data#xE0F
: end of connection, no longer receiving#xEC4O
: echo packet, should echo back with the same data to the other end. good for testing. respects controlThe rest of the packet is data, which has yet to be decided.