endpoint

fun endpoint(name: String, port: Int, attributes: Map<String, String>, resolvedAddress: String? = null): ReceiverEndpoint?

TXT requires protocol=1, scheme=http|https and a DNS hostname (normally MacName.local).