ApplicationProtocolSelectorAdapter

An adapter to bridge between the native code and the {@link ApplicationProtocolSelector} API.

Constructors

this
this(SSLEngine engine, ApplicationProtocolSelector selector)
Undocumented in source.

Members

Functions

selectApplicationProtocol
int selectApplicationProtocol(ubyte[] encodedProtocols)

Performs the ALPN protocol selection from the given list of length-delimited peer protocols. @param encodedProtocols the peer protocols in length-delimited form. @return If successful, returns the offset into the {@code lenghPrefixedList} array of the selected protocol (i.e. points to the length prefix). Otherwise, returns {@link #NO_PROTOCOL_SELECTED}.

Meta