TsgcWSPServer_FilesEvents › OnFileSentAcknowledgment

OnFileSentAcknowledgment Event

Fired when the receiver acknowledges a sent fragment under QoS Level 1 or 2.

Syntax

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

Default Value

Remarks

Fired every time the receiver confirms that a fragment has been processed. Under qosLevel2 the event is paired with a fragment request so the server can stream the next chunk; combine it with OnFileSentFragmentRequest for resumable transfers.

Example

procedure TForm1.oFilesFileSentAcknowledgment(Connection: TsgcWSConnection; const aMessage: TsgcWSMessageFile);
begin
  Memo1.Lines.Add(Format('ack: %s pos=%d', [aMessage.FileName, aMessage.FilePosition]));
end;

Back to Events