TsgcTCPClient › Properties › Host

Host Property

IP address or DNS name of the TCP server the client will connect to.

Syntax

property Host: String read FHost write FHost;

Default Value

(empty string)

Remarks

Set Host together with Port to specify the remote endpoint. Host accepts either an IPv4/IPv6 address or a DNS name; the resolver used depends on IPVersion. No WebSocket handshake is negotiated once the socket is open — the client reads and writes raw TCP (or TLS) bytes.

Example


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

Back to Properties