DtlsClientConnection

gio.dtls_client_connection.DtlsClientConnection is the client-side subclass of gio.dtls_connection.DtlsConnection, representing a client-side DTLS connection.

Members

Functions

getServerIdentity
gio.socket_connectable.SocketConnectable getServerIdentity()

Gets conn's expected server identity

getValidationFlags
gio.types.TlsCertificateFlags getValidationFlags()

Gets conn's validation flags

setServerIdentity
void setServerIdentity(gio.socket_connectable.SocketConnectable identity)

Sets conn's expected server identity, which is used both to tell servers on virtual hosts which certificate to present, and also to let conn know what name to look for in the certificate when performing gio.types.TlsCertificateFlags.BadIdentity validation, if enabled.

setValidationFlags
void setValidationFlags(gio.types.TlsCertificateFlags flags)

Sets conn's validation flags, to override the default set of checks performed when validating a server certificate. By default, gio.types.TlsCertificateFlags.ValidateAll is used.

Static functions

new_
gio.dtls_client_connection.DtlsClientConnection new_(gio.datagram_based.DatagramBased baseSocket, gio.socket_connectable.SocketConnectable serverIdentity)

Creates a new #GDtlsClientConnection wrapping base_socket which is assumed to communicate with the server identified by server_identity.