Internet Direct (Indy)
Home
PreviousUpNext
MakeCanonicalIPv4Address Function

Converts and IP version 4 address to its simplest and most significant form.

Pascal
function MakeCanonicalIPv4Address(
    const AAddr: string
): string;
Parameters 
Description 
AAddr 
IP address to be converted/normalized. 

string - IP address in dotted decimal form.

MakeCanonicalIPv4Address is a String function used to convert the IP version address in AAddr to its simplest and most significant form as a numeric address in dotted decimal form. MakeCanonicalIPv4Address is used to normalize IP addresses which may contain octal or hexadecimal values. 

MakeCanonicalIPv4Address calls IPv4ToDWord to convert the value in AAddr to a cardinal value, and calls MakeDWordIntoIPv4Address to return the cardinal value to dotted decimal form. 

MakeCanonicalIPv4Address will return an empty string if an error occurs while converting AAddr. 

Use MakeCanonicalIPv6Address to convert an IP version 6 address to its simplest and most significant form.

Internet Direct (Indy) version 10.1.5
Copyright © 1993-2006, Chad Z. Hower (aka Kudzu) and the Indy Pit Crew. All rights reserved.
Website http://www.indyproject.org.
Post feedback to the Indy Documentation newsgroup.