TsgcHTTP3Server › Eventi › OnStartup

OnStartup Evento

Si attiva quando il server HTTP/3 viene avviato ed è pronto ad accettare connessioni.

Sintassi

property OnStartup: TNotifyEvent;
// TNotifyEvent = procedure(Sender: TObject) of object

Valore predefinito

—

Note

Attivato da Active := True (direttamente o tramite Start) dopo che il socket del listener QUIC è stato associato alla Port (UDP) configurata e il motore QUIC di OpenSSL è pronto ad accettare connessioni HTTP/3. Utilizzare l'evento per registrare che il server è attivo, aggiornare un indicatore di stato nell'interfaccia utente o avviare qualsiasi attività che dipenda dalla disponibilità del listener.

Esempio


procedure OnStartupEvent(Sender: TObject);
begin
  Log('HTTP/3 server listening');
end;

Torna agli Eventi