TCP_Client.SetAdapter (METH)ΒΆ

METHOD FINAL SetAdapter : ERROR

A TCP_Client can bind a specific IP address to its socket.
The IP address must belong to an interface on the host.
For a TCP_Client, this assigns the source IP address that will be used for IP datagrams sent to the server.
Normally, a TCP_Client does not bind an IP address to its socket.
The kernel chooses the source IP address when the socket is connected,
based on the outgoing interface that is used, which in turn is based on the route required to reach the server
InOut:

Scope

Name

Type

Return

SetAdapter

ERROR

Input

itfIPAddress

IIPAddress