Topic Path: Symbol Reference > Classes > TIdStack Class > TIdStack Methods > HostToNetwork Method > HostToNetwork Method (TIdIPv6Address)
TIdStack.HostToNetwork Method (TIdIPv6Address)

Converts the byte order for a IPv6 network address from host-specific to network byte order.

function HostToNetwork(
    AValue: TIdIPv6Address
): TIdIPv6Address; virtual; overload;
IPv6 network address for the byte order conversion. 

TIdIPv6Address - IPv6 with the converted byte order values.

HostToNetwork is an overloaded virtual method that converts the byte order of the IPv6 address in AValue from its' host-specific representation to its' representation in network byte order. 

HostToNetwork iterates over the members in the TIdIPv6Address data type and calls HostToNetwork to convert and store the Word value components in the structured IP address. 

Overloaded variants of HostToNetwork that operate on other ordinal data types must must be overridden and implemented in a descendant class that provides access to the protocol stack implementation for the host operating system or platform.



Copyright 1993-2006, Chad Z. Hower (aka Kudzu) and the Indy Pit Crew. All rights reserved.
Post feedback to the Indy Docs Newsgroup.