createServer

fun createServer(host: String, port: Int, protocolTypes: ProtocolTypes): ServerRecord
fun createServer(host: String, port: Int, protocolTypes: EnumSet<ProtocolTypes>): ServerRecord

Creates a server record for a given endpoint.

Return

A new ServerRecord instance

Parameters

host

The host to connect to.

port

The port to connect to.

protocolTypes

The protocol types that this server supports.