TsgcHTTP3Client › Methods › Connected

Connected Method

Returns True when the HTTP/3 connection is currently open.

Syntax

function Connected: Boolean;

Return Value

True when the QUIC connection is established and the client can send requests, False otherwise. (Boolean)

Remarks

Connected reports the state of the underlying QUIC connection. It becomes True after a successful Connect and returns to False after Disconnect or when the peer closes the connection.

Connected is a method, not a property, so it must be called with parentheses in C++Builder and C#.

Example



if oClient.Connected then

  oClient.Disconnect;

Back to Methods