| GIO Reference Manual | ||||
|---|---|---|---|---|
| Top | Description | ||||
#include <gio/gio.h>
GTlsServerConnection;
GTlsServerConnectionInterface;
GIOStream * g_tls_server_connection_new (GIOStream *base_io_stream,
GTlsCertificate *certificate,
GError **error);
GTlsServerConnection is the server-side subclass of GTlsConnection, representing a server-side TLS connection.
typedef struct _GTlsServerConnection GTlsServerConnection;
TLS server-side connection. This is the server-side implementation of a GTlsConnection.
Since 2.28
typedef struct {
GTypeInterface g_iface;
} GTlsServerConnectionInterface;
GIOStream * g_tls_server_connection_new (GIOStream *base_io_stream,GTlsCertificate *certificate,GError **error);
Creates a new GTlsServerConnection wrapping base_io_stream (which
must have pollable input and output streams).
|
the GIOStream to wrap |
|
the default server certificate, or NULL. [allow-none]
|
|
GError for error reporting, or NULL to ignore.
|
Returns : |
the new GTlsServerConnection, or NULL on error
|
Since 2.28