TsgcQUICClient › 属性 › Active
打开或关闭到远程服务器的 QUIC 连接。
property Active: Boolean read FActive write SetActive;
False
将 Active 设为 True 会打开到 Host 和 Port 的 QUIC 连接,设为 False 则关闭连接。读取该属性可返回连接当前是否已打开。设置 Active := True 等同于调用 Connect;当需要布尔返回值以报告连接是否成功时,请使用 Connect。
oClient := TsgcQUICClient.Create(nil);
oClient.Host := 'www.example.com';
oClient.Port := 443;
oClient.Active := True;