Cliente QUIC
TsgcQUICClient — um cliente de transporte QUIC puro (RFC 9000): abre uma conexão com um único handshake TLS 1.3, envia e recebe bytes sobre um ou vários streams, com retomada 0-RTT e migração de conexão, em Delphi, C++ Builder e .NET.
TsgcQUICClient — um cliente de transporte QUIC puro (RFC 9000): abre uma conexão com um único handshake TLS 1.3, envia e recebe bytes sobre um ou vários streams, com retomada 0-RTT e migração de conexão, em Delphi, C++ Builder e .NET.
QUIC sem semântica HTTP. Defina Host, Port e os manipuladores de eventos, ative o componente e então escreva bytes em um stream. Construído sobre o mecanismo QUIC nativo do OpenSSL 3.5.
TsgcQUICClient
QUIC (RFC 9000) sobre UDP, TLS 1.3
Delphi, C++ Builder, .NET
Atribua Host e Port, conecte os eventos QUIC, defina Active e então envie bytes com WriteData. Chame EnableMultiStream e OpenStream para vários streams em uma conexão.
uses
sgcQUIC_Client;
var
oClient: TsgcQUICClient;
begin
oClient := TsgcQUICClient.Create(nil);
oClient.Host := 'www.example.com';
oClient.Port := 443;
oClient.OnQUICConnect := OnQUICConnectHandler;
oClient.OnQUICStreamData := OnStreamDataHandler;
oClient.OnQUICDisconnect := OnQUICDisconnectHandler;
oClient.Active := True; // one-flight TLS 1.3 handshake
oClient.WriteData('ping'); // send bytes on a QUIC stream
end;
// Several independent streams on one connection (builtin engine):
oClient.EnableMultiStream;
oClient.OpenStream;
// includes: sgcQUIC_Client.hpp
TsgcQUICClient *oClient = new TsgcQUICClient(NULL);
oClient->Host = "www.example.com";
oClient->Port = 443;
oClient->OnQUICConnect = OnQUICConnectHandler;
oClient->OnQUICStreamData = OnStreamDataHandler;
oClient->OnQUICDisconnect = OnQUICDisconnectHandler;
oClient->Active = true; // one-flight TLS 1.3 handshake
oClient->WriteData("ping"); // send bytes on a QUIC stream
// Several independent streams on one connection (builtin engine):
oClient->EnableMultiStream();
oClient->OpenStream();
using esegece.sgcWebSockets;
var oClient = new TsgcQUICClient();
oClient.Host = "www.example.com";
oClient.Port = 443;
oClient.OnQUICConnect += OnQUICConnectHandler;
oClient.OnQUICStreamData += OnStreamDataHandler;
oClient.OnQUICDisconnect += OnQUICDisconnectHandler;
oClient.Active = true; // one-flight TLS 1.3 handshake
oClient.WriteData("ping"); // send bytes on a QUIC stream
// Several independent streams on one connection (builtin engine):
oClient.EnableMultiStream();
oClient.OpenStream();
Os membros que você usa com mais frequência.
Host, Port e Active abrem e fecham a conexão QUIC; Connect / Disconnect e Start / Stop fazem isso explicitamente.
QUICOptions configura ALPN, timeouts e 0-RTT; SSLQUICOptions ajusta a camada TLS 1.3.
EnableMultiStream mais OpenStream(aUnidirectional) colocam vários streams QUIC independentes em uma conexão (mecanismo builtin).
WriteData grava um payload string ou TBytes em um stream.
OnQUICConnect, OnQUICStreamData, OnQUICDisconnect e OnQUICException governam o ciclo de vida da conexão e os dados de entrada.
A retomada 0-RTT e a migração de conexão mantêm uma sessão viva em uma única viagem de ida e volta e através de mudanças de rede.
| Ajuda onlineReferência completa da API e guia de uso do sgcQUIC. | Abrir | |
| Todos os Componentes sgcQUICExplore a matriz de recursos completa dos quatro componentes. | Abrir | |
| Baixar Versão de Avaliação GratuitaExecute o cliente QUIC contra seu próprio servidor ou qualquer endpoint QUIC. | Abrir | |
| PreçosLicenças Single, Team e Site com código-fonte completo. | Abrir |