object DnsRecordCodec
Trivial Dns Encoder/Decoder, basically ripped from Netty full implementation.
const val TYPE_A: Int |
|
const val TYPE_AAAA: Int |
fun decodeAnswers(hostname: String, byteString: ByteString): List<InetAddress> |
|
fun encodeQuery(host: String, type: Int): ByteString |