object Companion
source · line 48public
public companion
Creates native TLS sessions without owning a network transport.
function server
source · line 57public
public fun server(context: TlsServerContext): TlsEngine
Creates a server engine from a server context. The caller must drive the handshake.
parameter context
source · line 57public
context: TlsServerContext
function client
source · line 53public
public fun client(context: TlsClientContext, peer: TlsPeerName): TlsEngine
Creates a client engine configured to verify the supplied DNS name or IP address. The caller must drive the handshake.
parameter context
source · line 53public
context: TlsClientContext
parameter peer
source · line 53public
peer: TlsPeerName