Internet Direct (Indy)
Home
PreviousUpNext
TIdStackWindows.NetworkToHost Method (Word)

Converts a numeric value to its host byte order representation.

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

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.