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

Converts a numeric value to its host byte order representation.

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

Word - 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.

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