setProtocol

open fun setProtocol(protocol: SocketProtocol)

Sets the protocol of the socket client. The sockets created by this object will use of the specified protocol.

If @protocol is %G_SOCKET_PROTOCOL_DEFAULT that means to use the default protocol for the socket family and type.

Since

2.22

Parameters

protocol

a #GSocketProtocol