Internet Direct (Indy) Version 9.0.2 Beta
TIdSocketHandles.BindingByHandle
Retrieve an Indy socket handle for the socket binding.

function BindingByHandle(const AHandle: TIdStackSocketHandle): TIdSocketHandle;
Parameters
const AHandle: TIdStackSocketHandle
The protocol stack socket handle binding to locate.

Returns
TIdSocketHandle - The Indy socket handle for the socket binding, or Nil.

Description
BindingByHandle is a TIdSocketHandle function used to retrieve an Indy socket from the socket handle collection. BindingByHandle examines Items starting with the most recently created item in the collection, and navigates towards the oldest of the collection Items.

The return value for BindingByHandle will be Nil if the socket binding specified by AHandle does not exist in the collection.