gio.dtls_client_connection

Module for [DtlsClientConnection] interface

Types 2

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

Methods
gio.socket_connectable.SocketConnectable serverIdentity() @propertyGet `serverIdentity` property. Returns: A #GSocketConnectable describing the identity of the server that is expected on the other end of the connection.
void serverIdentity(gio.socket_connectable.SocketConnectable propval) @propertySet `serverIdentity` property. Params: propval = A #GSocketConnectable describing the identity of the server that is expected on the other end of the connection.
gio.types.TlsCertificateFlags validationFlags() @propertyGet `validationFlags` property. Returns: What steps to perform when validating a certificate received from a server. Server certificates that fail to validate in any of the ways indicated here will...
void validationFlags(gio.types.TlsCertificateFlags propval) @propertySet `validationFlags` property. Params: propval = What steps to perform when validating a certificate received from a server. Server certificates that fail to validate in any of the ways indicated ...
gio.dtls_client_connection.DtlsClientConnection new_(gio.datagram_based.DatagramBased baseSocket, gio.socket_connectable.SocketConnectable serverIdentity = null)Creates a new #GDtlsClientConnection wrapping basesocket which is assumed to communicate with the server identified by serveridentity.
gio.socket_connectable.SocketConnectable getServerIdentity()Gets conn's expected server identity Returns: a #GSocketConnectable describing the expected server identity, or null if the expected identity is not known.
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 perfo...
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.
Methods
T serverIdentity(gio.socket_connectable.SocketConnectable propval)Set `serverIdentity` property. Params: propval = A #GSocketConnectable describing the identity of the server that is expected on the other end of the connection.
T validationFlags(gio.types.TlsCertificateFlags propval)Set `validationFlags` property. Params: propval = What steps to perform when validating a certificate received from a server. Server certificates that fail to validate in any of the ways indicated ...