TsgcTCPClient › Properties › Port
用于连接到远程服务器的 TCP 端口。
property Port: Integer read FPort write FPort;
0
定义远程服务器的监听端口。服务器接受的任何端口都是允许的;该值与协议无关,因为不执行 WebSocket 握手,只建立原始 TCP(或 TLS)会话。当启用 TLS 时,使用相同端口,TLS 握手在套接字被接受后立即运行。
oTCP := TsgcTCPClient.Create(nil);
oTCP.Host := 'www.esegece.com';
oTCP.Port := 2053;
oTCP.TLS := true;
oTCP.Active := true;