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. Since 2.22

class SocketClient
void
setLocalAddress

Parameters

address SocketAddress

a GSocketAddress, or NULL. [allow-none]

Meta