Internet Direct (Indy) Version 9.0.2 Beta
TIdComponent.EndWork
Triggers the OnEndWork event handler.

procedure EndWork(AWorkMode: TWorkMode); virtual;
Parameters
AWorkMode: TWorkMode
Work mode for the peer connection.

Description
EndWork is a procedure used to trigger the OnEndWork eventhandler. EndWork maintains the number of reads and writes pending, and size information for the initial read and write operations.

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

Calls to the EndWork procedure can be nested, but the OnEndWork event handler will be invoked only for the initial call to EndWork.

Applications must assign a procedure to the OnEndWork event handler in order to respond to the event notification.