Internet Direct (Indy) Version 9.0.1 Beta
TIdTCPConnection.OnWork
Work event handler for buffered read and write operations.

property OnWork;
Description
OnWork is the event handler for the event TWorkEvent. OnWork is used in conjunction with DoWork to notify Indy components and classes when buffered read or write operations are invoked. OnWork is generally used to control the update of progress indicators or GUI components.

AWorkMode indicates the operation performed and the notification sent to OnWork. AWorkMode can be contain one of the following values:

AWorkCount indicates the number of bytes affected by the operation sent to OnWork.

The event TWorkEvent is implemented in IdComponent.pas.

TIdTCPConnection publishes the OnWork event. OnWork is not published in the ancestor class TIdComponent.