Internet Direct (Indy) Version 9.0.2 Beta
EIdSocketError.LastError
Indicates the last error code.

property LastError: Integer;
Description
LastError is the last socket error code and is used to provide the developer with flexibility when dealing with specific socket errors. This is set with the CreateError constructor.

The values for this property are usually listed in Winsock references such as: