ConnectToProxy (Method)

Overview

Type:

Interface

Available as of:

V1.0.2.0

Inherits from:

-

Description

This method is used to establish a TCP connection for the specified instance of the TCP client to the specified proxy server.

The return value of type BOOL is used to indicate that the connection to the proxy server was initiated successfully.

Interface

Input/Output

Data type

Description

iq_fbTcpClient

TCPUDP.FB_TcpClient2

Specifies the instance of the FB_TcpClient2 for which the connection is established.

Input

Data type

Description

i_refTlsSettings

REFERENCE TOTCPUDP.ST_TlsSettingsClient

TLS settings for the connection. For sockets of type Standard, this input is optional and can be set to 0.

i_etSocketType

ET_SocketType

Specifies the socket type which is used for the connection to be established.

Output

Data type

Description

q_xBusy

BOOL

Set this output to TRUE when the establishing of the connection is in progress and a further call of the method is required.

q_xDone

BOOL

Set this output to TRUE when the connection has been established successfully.

q_xError

BOOL

Set this output to TRUE when an error has been detected. Additional information about the error is provided via the properties Result and ResultMsg.