TsgcQUICClient › Events

TsgcQUICClient Events

Events you can handle, grouped by purpose, followed by the full alphabetical list.

Connection

NameDescription
OnQUICConnectFires once the QUIC connection has been established and the client is ready to send data.
OnQUICDisconnectFires when the QUIC connection has been closed, reporting the close code and reason.

Data

NameDescription
OnQUICStreamDataFires with the bytes read from a QUIC stream. Inert until EnableMultiStream has been called.

Errors

NameDescription
OnQUICExceptionFires when an exception is raised on the QUIC connection so the application can handle it.

All Events (alphabetical)

NameDescription
OnQUICConnectFires once the QUIC connection has been established and the client is ready to send data.
OnQUICDisconnectFires when the QUIC connection has been closed, reporting the close code and reason.
OnQUICExceptionFires when an exception is raised on the QUIC connection so the application can handle it.
OnQUICStreamDataFires with the bytes read from a QUIC stream. Inert until EnableMultiStream has been called.

Threading. The component sets NotifyEvents to neNoSync in its constructor, so every handler runs on the thread that raised it, not on the main thread. Marshal to the main thread before touching VCL or FMX controls.

Availability. OnQUICConnect, OnQUICDisconnect and OnQUICException are published and appear in the Object Inspector. OnQUICStreamData is public, so it can only be assigned in code, and it exists in the Delphi/C++Builder implementation only.