Package-level declarations

Types

Link copied to clipboard

A default naive extended info filter. This filter will stop accepting any avatars once 30kb of data has been written in the buffer. As a result of this, it is guaranteed that the packet capacity will never be exceeded under any circumstances, as the remaining 10kb is more than enough to write every extended info block set to the theoretical maximums.

Link copied to clipboard
fun interface ExtendedInfoFilter

Extended info filter provides the protocol with a strategy for how to handle the packet capacity limitations, as it is all too easy to fly past the 40kb limitation in extreme scenarios and benchmarks. This interface is responsible for ensuring that the extended info blocks do not exceed the 40kb limitation. In order to achieve this, all necessary information is provided within the accept function. It should be noted that at least 1 byte of space is necessary per each remaining avatar at the very least, as we write the flag as zero in those extreme scenarios.