Virtual Method

GioDtlsConnectionget_negotiated_protocol

Declaration

const gchar*
get_negotiated_protocol (
  GDtlsConnection* conn
)

Description

Gets the name of the application-layer protocol negotiated during the handshake.

If the peer did not use the ALPN extension, or did not advertise a protocol that matched one of conns protocols, or the TLS backend does not support ALPN, then this will be NULL. See g_dtls_connection_set_advertised_protocols().

Available since:2.60

Return value

Returns: utf8
 

The negotiated protocol, or NULL.

 The data is owned by the called function.
 The return value can be NULL.
 The string is a NUL terminated UTF-8 string.