Sets whether client creates TLS (aka SSL) connections. If tls is
TRUE, client will wrap its connections in a GTlsClientConnection
and perform a TLS handshake when connecting.
Note that since GSocketClient must return a GSocketConnection,
but GTlsClientConnection is not a GSocketConnection, this
actually wraps the resulting GTlsClientConnection in a
GTcpWrapperConnection when returning it. You can use
g_tcp_wrapper_connection_get_base_io_stream() on the return value
to extract the GTlsClientConnection.
Since 2.28
Sets whether client creates TLS (aka SSL) connections. If tls is TRUE, client will wrap its connections in a GTlsClientConnection and perform a TLS handshake when connecting. Note that since GSocketClient must return a GSocketConnection, but GTlsClientConnection is not a GSocketConnection, this actually wraps the resulting GTlsClientConnection in a GTcpWrapperConnection when returning it. You can use g_tcp_wrapper_connection_get_base_io_stream() on the return value to extract the GTlsClientConnection. Since 2.28