Internet Direct (Indy) Version 9.0.2 Beta
TWorkInfo
Represents work information for Indy read and write operations.

TWorkInfo = record
  Current: Integer;
  Max: Integer;
  Level: Integer;
  end;
Description
TWorkInfo is a Record structure used to represent information about Indy read and write operations. TIdComponent allocates two TWorkInfo records; one represents read operations, and one represents write operations.

The TWorkInfo structures are maintain in the BeginWork and EndWork method of TIdComponent.

Current is an Integer value that identifies the number of bytes available to the current read or write operation.

Max is an Integer value that indicates the maximum number of bytes that are available to the current operation.

Current should never exceed the value of Max.

Level is an Integer value that identifies the number of operations of the given type that are pending. Level can range from 0 to the number of nested calls to BeginWork for the operation type.