TsgcTCPClient › Properties › TLS

TLS Property

Enables a secure TLS/SSL connection to the TCP server.

Syntax

property TLS: Boolean read FTLS write FTLS;

Default Value

False

Remarks

Set TLS to True to negotiate a secure connection. The TLS handshake is performed immediately after the TCP socket is open; no WebSocket upgrade is performed, the subsequent traffic is raw TLS-protected bytes. Additional TLS parameters (certificate files, verification, TLS version, IOHandler) are configured through TLSOptions.

Example


oTCP := TsgcTCPClient.Create(nil);
oTCP.Host := 'www.esegece.com';
oTCP.Port := 2053;
oTCP.TLS := true;
oTCP.Active := true;

Back to Properties