Feature notes: Asynchronous QUIC server and HTTP/3 component
LocalAddress: tSocketAddress;
RemoteAddress: tSocketAddress;
Sockets remain the caller's responsibility. A candidate cannot carry application data until a matching response validates a challenge sent in a datagram of at least 1200 bytes. Challenge tokens must be generated unpredictably by the caller and cannot be reused within an attempt. Preview methods do not commit a send; commit only after successful UDP. Times are monotone microseconds supplied by the caller.
constructor Create(aRole: tQuicRole; const aInitialPath: tQuicPathKey; aInitialValidated: Boolean);
procedure ValidateActivePath;
procedure SetHandshakeConfirmed;
procedure AbandonCandidate;
function BeginCandidate(const aPath: tQuicPathKey; aCause: tQuicPathCause; aNowMicros: UInt64): Boolean;
function ChallengeDue(aNowMicros: UInt64; out aPath: tQuicPathKey; out aMinimumBytes: Integer): Boolean;
procedure ChallengeSent(const aPath: tQuicPathKey; const aToken: TBytes; aWireBytes: Integer; aNowMicros, aPtoMicros: UInt64);
function PathResponse(const aToken: TBytes; aNowMicros: UInt64; out aResetCongestion: Boolean): Boolean;
procedure DatagramReceived(const aPath: tQuicPathKey; aWireBytes: Integer);
procedure DatagramSent(const aPath: tQuicPathKey; aWireBytes: Integer);
function CanSend(const aPath: tQuicPathKey; aWireBytes: Integer; aProbing: Boolean; aPendingBytes: UInt64 = 0): Boolean;
function Poll(aNowMicros: UInt64): Boolean;
function NextTimeout(out aDeadline: UInt64): Boolean;
property ActivePath: tQuicPathKey read fActivePath;
property CandidatePath: tQuicPathKey read fCandidatePath;
property ActiveValidated: Boolean read fActiveValidated;
property CandidatePending: Boolean read fCandidatePending;
property CandidateAddressValidated: Boolean read fCandidateAddressValidated;
property ChallengeAttempts: Integer read fChallengeAttempts;
property PeerDisableActiveMigration: Boolean read fPeerDisableActiveMigration write fPeerDisableActiveMigration;
Conservative DPLPMTUD policy with one outstanding PING/PADDING probe. A configured ceiling of 1200 disables growth. Authenticated exact packet number AND datagram-size acknowledgement is required for promotion. A matched probe loss is reported separately so its loss does not imply congestion; the probe still consumes congestion window while in flight. No unauthenticated ICMP input can alter the proven datagram size.
constructor Create(aCeiling: Integer = cQuicBaseDatagramSize);
procedure Reset(aCeiling: Integer);
function NextProbe(aNowMicros: UInt64; out aWireBytes: Integer): Boolean;
procedure ProbeSent(aPacketNumber: UInt64; aWireBytes: Integer; aNowMicros, aPtoMicros: UInt64);
function IsProbe(aPacketNumber: UInt64; aWireBytes: Integer): Boolean;
function PacketAcknowledged(aPacketNumber: UInt64; aWireBytes: Integer; aNowMicros: UInt64): Boolean;
function PacketLost(aPacketNumber: UInt64; aWireBytes: Integer; aNowMicros, aPtoMicros: UInt64): Boolean;
procedure OrdinaryPacketAcknowledged(aPacketNumber: UInt64; aWireBytes: Integer; aNowMicros: UInt64);
procedure OrdinaryPacketLost(aPacketNumber: UInt64; aWireBytes: Integer; aNowMicros, aPtoMicros: UInt64);
function Poll(aNowMicros, aPtoMicros: UInt64): Boolean;
function NextTimeout(out aDeadline: UInt64): Boolean;
property CurrentMtu: Integer read fCurrentMtu;
property Ceiling: Integer read fCeiling;
property ProbePending: Boolean read fProbePending;
property ProbeSize: Integer read fProbeSize;
property ProbePacketNumber: UInt64 read fProbePacketNumber;
property ProbeAttempts: Integer read fProbeAttempts;