Contents · Forum Home · StreamSec Tools 4.1.5.363 documentation

methodtQuicClient.Flush

function Flush(aNowMicros: UInt64; aMaxPackets: Integer = 32): Integer;
Sends what is ready (stream data, ACKs, retransmissions, the CONNECTION_CLOSE after Close) in at most aMaxPackets datagrams (0..65536) and returns how many were sent. 0 is normal: nothing is ready, or congestion control or pacing holds it back until NextWakeup. aMaxPackets sent means more may be ready: call again. When the socket refuses a datagram, Flush stops and keeps the work queued for a retry 1 ms later; LastSocketError is then 0 for a full send buffer, else the socket's error code. The socket stays open; whether to Close is your decision.