Converts an IP version 4 address to its hexadecimal representation.
function IPv4ToHex( const AIPAddress: string; const ASDotted: Boolean = False ): string;
Parameters |
Description |
AIPAddress |
IP address to be converted. |
ASDotted |
Indicates if the return value should contain the '.' decimal seperators. The default value is False. |
String - Hexadecimal representation for the IP address.
IPv4ToHex is a String function used to convert an IP version 4 address to the hexadecimal representation for its numeric value.
AIPAddress is the IP address to be converted, and is expected to contain 4 byte values in dotted decimal form.
ASDotted indicates the return value for the funcation should contain the '.' decimal separator character and the Hex prefix between converted byte values. When ASDotted is False, the return value will contain only values for IdHexDigits.
Use IPv4ToOctal to convert an IP address to its Octal representation.
Copyright © 1993-2006, Chad Z. Hower (aka Kudzu) and the Indy Pit Crew. All rights reserved.
|
Post feedback to the Indy Docs Newsgroup.
|