Internet Direct (Indy)
Home
PreviousUpNext
IPv4ToDWord Function

Converts an IP version 4 IP address to its representation as an unsigned 32-bit numeric value.

Pascal
function IPv4ToDWord(
    const AIPAddress: string; 
    var VErr: Boolean
): Cardinal; overload;
Parameters 
Description 
AIPAddress 
Numeric IP address to convert to the ordinal value.
 
VErr 
Indicates an error occurred while conerting the IP address to its numeric representation. 

Cardinal - Unsigned 32-bit value representing the IP address.

IPv4ToDWord is an overloaded function used to convert an IP version 4 IP address to its representation as an unsigned 32-bit numeric value. 

AIPAddress is the IP address, in dotted decimal or hexadecimal form, to convert to the ordinal data type. 

 

For the .Net platform, the implementation of IPv4ToDWord relies on IPAddress from the Framework API to determine if the IP address is in the correct address family and internetwork prior to conversion. 

Use MakeDWordIntoIPv4Address to convert a numeric value into an IP version 4 IP address.

IPv4ToDWord

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.