TsgcWSPServer_FilesEvents › OnFileSentError

OnFileSentError Event

Fired when an error occurs while sending a file to a client.

Syntax

property OnFileSentError: TsgcWSFileErrorEvent;
// TsgcWSFileErrorEvent = procedure(Connection: TsgcWSConnection; const aMessage: TsgcWSMessageFile; const Error: String) of object

Default Value

Remarks

Fires when the sender-side flow aborts: receiver-reported error, cancelled fragment request, local I/O failure, or the connection dropped while an qosLevel2 transfer was in progress. The QoS queue and sent-stream are cleaned up before the event is raised.

Example

procedure TForm1.oFilesFileSentError(Connection: TsgcWSConnection;
  const aMessage: TsgcWSMessageFile; const Error: String);
begin
  Memo1.Lines.Add(Format('send error: %s (%s)', [aMessage.FileName, Error]));
end;

Back to Events