TIdIOHandler.ConnectClient
Establisheds a remote connection for the input/output handler.
procedure ConnectClient(const AHost: string; const APort: Integer; const ABoundIP: string; const ABoundPort: Integer; const ABoundPortMin: Integer; const ABoundPortMax: Integer; const ATimeout: Integer); virtual;
const AHost: string
Address of the remote system for the client connection.
const APort: Integer
Port number for the remote connection.
const ABoundIP: string
IP Address bound to the local system.
const ABoundPort: Integer
Port number bound to the local computer.
const ABoundPortMin: Integer
Minimum bound port number for the local system.
const ABoundPortMax: Integer
Maximum bound port number for the local system.
const ATimeout: Integer = IdTimeoutDefault
Number of milliseconds to wait before a connection attempt fails. Default value is
IdTimeoutDefault.
ConnectClient is a virtual procedure in
TIdIOHandler that specifies the mechanism that allows an input/output handler to prepare and establish a client connection to a remote computer system using the input parameters. ConnectClient must be implemented in a
TIdIOHandler decendant, like
TIdIOHandlerSocket or
TIdSSLIOHandlerSocket, that uses a physical connection to a remote system.