Internet Direct (Indy) Version 9.0.1 Beta
TIdComponent.DoWork
Triggers the OnWork event handler.

procedure DoWork(AWorkMode: TWorkMode; const ACount: Integer); virtual;
Parameters
AWorkMode: TWorkMode
Work mode for the peer connection.

const ACount: Integer
Number of bytes to be handled.

Description
DoWork is a procedure used to trigger the OnWork event handler. DoWork is used to signal that the indicated work mode will be used to handle the specified number of bytes.

AWorkMode is a TWorkMode enumerated type, and can contain the values:

ACount is the number of bytes to be affected by the AWorkMode operation.

DoWork allows the application to respond to calls to the BeginWork method, and maintains the number of bytes available to be process in the OnWork event handler. DoWork will not have any effect unless BeginWork is called prior to calling DoWork.

The Application must assign a procedure to the OnWork event handler in order to respond to the event notification.