writePacket

fun OutputStream.writePacket(packet: Source)(source)
fun OutputStream.writePacket(block: Sink.() -> Unit)(source)