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

Converts a numeric value to its Network byte order representation.

function HostToNetwork(
    AValue: LongWord
): LongWord; virtual; abstract; overload;
Numeric value to convert to its Network byte order. 

LongWord - Network byte order for the numeric value.

HostToNetwork is an overloaded abstract virtual function in TIdStack that specifies methods used to access the htons() and htonl() APIs in a protocol stack implementation. 

HostToNetwork is used to convert the numeric value in AValue from its platform-specific byte order to its representation in Network byte order. 

The return value is the numeric value in AValue converted to its Network byte order representation.


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