readPacketExact

fun ReadableByteChannel.readPacketExact(n: Long): <Error class: unknown class>

Read a packet of exactly n bytes. This function is useless with non-blocking channels