diff --git a/README.md b/README.md index 2b1919e..12348ad 100644 --- a/README.md +++ b/README.md @@ -44,6 +44,24 @@ For complete documentation, see the associated [Godoc](https://godoc.org/github. Frame Format +``` +NONCE: + 16bytes cryptographically secure random number, nonce changes for every packet. + +CRC32: + CRC-32 checksum of data using the IEEE polynomial + +FEC TYPE: + typeData = 0xF1 + typeParity = 0xF2 + +FEC SEQID: + monotonically increasing in range: [0, (0xffffffff/shardSize) * shardSize - 1] + +SIZE: + The size of KCP frame plus 2 +``` + ``` +-----------------+ | SESSION |