set_local_address


Description:

public void set_local_address (SocketAddress? address)

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.

Parameters:

this

a SocketClient.

address

a SocketAddress, or null