SocketClient.setLocalAddress

Sets the local address of the socket client. The sockets created by this object will bound to the specified address (if not %NULL) before connecting.

This is useful if you want to ensure that the local side of the connection is on a specific port, or on a specific interface.

class SocketClient
void
setLocalAddress

Parameters

address SocketAddress

a #GSocketAddress, or %NULL

Meta

Since

2.22