TsgcTCPClient › Properties › Port

Port Property

TCP port used to connect to the remote server.

Syntax

property Port: Integer read FPort write FPort;

Default Value

0

Remarks

Defines the listening port of the remote server. Any port accepted by the server is allowed; the value is protocol-agnostic because no WebSocket handshake is performed, only a raw TCP (or TLS) session. When TLS is enabled the same port is used and the TLS handshake runs immediately after the socket is accepted.

Example


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

Back to Properties