TsgcWSPClient_FilesEvents › OnFileSentAcknowledgment

OnFileSentAcknowledgment Event

Fires when the server acknowledges processing of an outbound file fragment under qosLevel1 or qosLevel2.

Syntax

property OnFileSentAcknowledgment: TsgcWSFileEvent;
// TsgcWSFileEvent = procedure(Connection: TsgcWSConnection; const aMessage: TsgcWSMessageFile) of object

Default Value

Remarks

Use this event to track per-fragment delivery confirmations: aMessage.Id identifies the fragment being acknowledged and aMessage.FileId the parent upload. Not fired for qosLevel0 (no acknowledgment is sent).

Example

procedure TForm1.oProtocolFileSentAcknowledgment(Connection: TsgcWSConnection;
  const aMessage: TsgcWSMessageFile);
begin
  Memo1.Lines.Add('ack ' + aMessage.Id);
end;

Back to Events