Skip to content

ALPNStandardProtocolResolver

[Source]

Implements the standard protocol selection akin to the OpenSSL function SSL_select_next_proto.

class val ALPNStandardProtocolResolver is
  ALPNProtocolResolver box

Implements


Constructors

create

[Source]

new val create(
  supported': Array[String val] val,
  use_client_as_fallback': Bool val = true)
: ALPNStandardProtocolResolver val^

Parameters

  • supported': Array[String val] val
  • use_client_as_fallback': Bool val = true

Returns


Public fields

let supported: Array[String val] val

[Source]


let use_client_as_fallback: Bool val

[Source]


Public Functions

resolve

[Source]

fun box resolve(
  advertised: Array[String val] val)
: (String val | ALPNNoAck val | ALPNWarning val | 
    ALPNFatal val)

Parameters

Returns