Internet Direct (Indy) Version 9.0.2 Beta
TIdSocketHandle.Handle
Specifies the low-level socket handle for the binding.

property Handle: TIdStackSocketHandle;
Description
Handle is a read-only TIdStackSocketHandle property that encapsulate the low-level socket handle required to perform protocol stack API operations.

Handle is also referred to as the socket descriptor in UNIX parlance. Socket descriptors are not presumed to correspond to a regular file handle, and native file operations such as read(), write(), and close() cannot be assumed to work correctly when applied to socket descriptors.

Handle is assigned a valid value in Accept, and AllocateSocket. The value in Handle is Id_INVALID_SOCKET prior to calling one of these methods. Handle is release in CloseSocket.

HandleAllocated reflects the current state of Handle.