This method is used to establish a TCP connection for the specified instance of the TCP client to the specified proxy server. The connection parameter, IP address and port number of the proxy server must be specified using the corresponding properties.
The return value of type BOOL indicates TRUE if the connection to the proxy server was initiated successfully. Otherwise, refer to the values of Result and ResultMsg to get detailed information about the detected error.
Input/Output |
Data type |
Description |
---|---|---|
i_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 |
Specifies the socket type which is used for the connection to be established. |
Output |
Data type |
Description |
---|---|---|
q_xBusy |
BOOL |
Indicates TRUE when the establishing of the connection is in progress and a further call of the method is required. |
q_xDone |
BOOL |
Indicates TRUE when the connection has been established successfully. |
q_xError |
BOOL |
Indicates TRUE when an error has been detected. Additional information about the error is provided via the properties Result and ResultMsg. |