TsgcQUICServer › Properties › QUICMode
Read-only. The QUIC engine the server selected when it started.
property QUICMode: TsgcQUICMode read FQUICMode;
TsgcQUICMode = (qmCustom, qmBuiltin), declared in sgcSSL_QUIC.pas.
The engine is chosen when the server starts, with the same rule as the client:
qmBuiltin, the default: the OpenSSL built-in QUIC server (OpenSSL 3.5 or later), used when the loaded OpenSSL library exports it.qmCustom: the sgc QUIC engine, used as the fallback when the built-in QUIC server is not available. It listens on a plain UDP socket, routes every datagram to its connection by connection ID and honours QUICOptions.MaxConnections. The server events and the WriteData, OpenStream and WriteStreamData methods work the same way on both engines.With QUICOptions.SSLOptions.IOHandler = iohNativeTLS the server always runs on qmCustom, with the TLS 1.3 handshake on the native TLS engine. On either engine an empty Host listens dual-stack, on IPv4 and IPv6. See QUIC for the engine comparison.
Read the value after Start. This member is available in the Delphi/C++Builder implementation only.
oServer.Start;
if oServer.QUICMode = qmBuiltin then
Log('OpenSSL built-in QUIC engine')
else
Log('sgc QUIC engine');