writePacket

fun OutputStream.writePacket(builder: <Error class: unknown class>.() -> Unit)

Write the whole packet to the stream once it is built via builder lambda


fun OutputStream.writePacket(packet: <Error class: unknown class>)

Write the whole packet to the stream