Topic Path: Symbol Reference > Classes > TIdStackDotNet Class > TIdStackDotNet Methods > NetworkToHost Method > NetworkToHost Method (LongWord)
ContentsIndexHome
PreviousUpNext
TIdStackDotNet.NetworkToHost Method (LongWord)

Converts a numeric value to its host byte order representation.

function NetworkToHost(
    AValue: LongWord
): LongWord; override;
Parameters 
Description 
ANetLong 
Numeric value to convert to its Network byte order. 

LongWord - Host byte order for the numeric value.

NetworkToHost is an overloaded function that implements methods used to access the ntohs() and ntohl() APIs for the protocol stack implementation. 

NetworkToHost is used to convert the numeric value in AValue from its Network byte order (Big-Endian) to its platform -specific byte order. 

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

NetworkToHost uses IPAddress.NetworkToHostOrder to convert the value.

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