TTCPBlockSocket.Connect
TTCPBlockSocket

procedure Connect(IP, Port: string); override;

Unit
blcksock

Description
Connects socket to remote IP address and PORT. The same rules as with BIND method are valid. The only exception is that PORT with 0 value will not be connected.

After call to this method a communication channel between local and remote socket is created. Local socket is assigned automatically if not controlled by previous call to BIND method.

Structures LocalSin and RemoteSin will be filled with valid values.

If you use SOCKS5, activate outgoing TCP connection by this proxy. (By CONNECT method of SOCKS5.)

Structures LocalSin and RemoteSin will be filled with valid values.