TsgcQUICClient › 属性 › Port

Port 属性

用于连接到 QUIC 服务器的 UDP 端口。

语法

property Port: Integer read FPort write FPort;

默认值

0

备注

QUIC 基于 UDP 运行,因此 Port 是远程服务器的 UDP 端口。请在打开连接之前与 Host 一起设置。QUIC 服务器通常监听端口 443,与 HTTPS 和 HTTP/3 使用的端口号相同。

示例


oClient := TsgcQUICClient.Create(nil);
oClient.Host := 'www.example.com';
oClient.Port := 443;

返回属性