Contents · Forum Home · StreamSec Tools 4.1.5.363 documentation

methodiQuicAppTransport.Send

procedure Send(aStreamID: UInt64; const aData: TBytes; aOffset, aCount: Integer; aFin: Boolean);
Queues aCount bytes of aData from aOffset on aStreamID, then the stream's FIN if aFin is True. Success means QUIC accepted them into its bounded send queue, not that they were sent or acknowledged. Send raises, queueing nothing, if aCount exceeds SendCapacity, if the range lies outside aData, if the stream cannot send (unknown, receive-only, FIN or reset already queued) or after Closed. Send(aStreamID, nil, 0, 0, True) ends a stream without needing capacity. The transport may keep a reference to all of aData, not only the range, while it may still resend it: never modify those elements afterwards. Releasing your own reference is fine.