Indy 9
IdPorts
Unit: IdGlobal
Provides a list of port numbers defined for services.
function IdPorts: TList;
Unit
IdGlobal
Return Value
TList - List of integer port numbers.
Description
IdPorts is a TList function used to provide a list of the integer port numbers defined for services on the protocol stack. IdPorts will initialize the application variable FIdPorts, if it has not been loaded, with the port numbers defined for the local computer system.

IdPorts can raise an EIdCorruptServicesFile exception when the protocol family cannot be determined for a services entry.

Note: Do not free the TList returned by IdPorts. This list is freed by the finalization code in the IdGlobal.pas unit.


Created with Doc-O-Matic 2 donated to Project JEDI. Commercial license available from the Doc-O-Matic site.