Internet Direct (Indy)
Home
PreviousUpNext
TWorkEvent Type

Indicates that a read or write operation is being performed.

Pascal
TWorkEvent = procedure (ASender: TObject; AWorkMode: TWorkMode; AWorkCount: Integer) of object;
Parameters 
Description 
ASender 
Object instance triggering the event.
 
AWorkMode 
The operation to be performed.
 
AWorkCount 
Number of bytes affected by the event. 

TWorkEvent is an object procedure that represents the event fired when a component is receiving or sending data. TWorkEvent is the type used for the TIdComponent.OnWork, and is often used to update progress indicators. 

ASender is the object instance triggering the event. 

AWorkMode indicates if the component is receiving or sending data and can contain one of enumeration values in TWorkMode

AWorkCount indicates the number of bytes sent or received in the read or write operation.

TWorkMode 

TIdComponent.OnWork

Internet Direct (Indy) version 10.1.5
Copyright © 1993-2006, Chad Z. Hower (aka Kudzu) and the Indy Pit Crew. All rights reserved.
Website http://www.indyproject.org.
Post feedback to the Indy Documentation newsgroup.