Top |
GDtlsServerConnection is the server-side subclass of GDtlsConnection, representing a server-side DTLS connection.
GDatagramBased * g_dtls_server_connection_new (GDatagramBased *base_socket
,GTlsCertificate *certificate
,GError **error
);
Creates a new GDtlsServerConnection wrapping base_socket
.
base_socket |
the GDatagramBased to wrap |
|
certificate |
the default server certificate, or |
[nullable] |
error |
GError for error reporting, or |
the new
GDtlsServerConnection, or NULL
on error.
[transfer full][type GDtlsServerConnection]
Since: 2.48
typedef struct _GDtlsServerConnection GDtlsServerConnection;
DTLS server-side connection. This is the server-side implementation of a GDtlsConnection.
Since: 2.48
struct GDtlsServerConnectionInterface { GTypeInterface g_iface; };
vtable for a GDtlsServerConnection implementation.
Since: 2.48
“authentication-mode”
property“authentication-mode” GTlsAuthenticationMode
The GTlsAuthenticationMode for the server. This can be changed
before calling g_dtls_connection_handshake()
if you want to
rehandshake with a different mode from the initial handshake.
Owner: GDtlsServerConnection
Flags: Read / Write
Default value: G_TLS_AUTHENTICATION_NONE
Since: 2.48