Topic Path: Symbol Reference > Classes > TIdIPAddress Class > TIdIPAddress Properties > HToNBytes Property
TIdIPAddress.HToNBytes Property

Converts an IP address to its Network byte-order representation.

property HToNBytes: TIdBytes;

HToNBytes is a read-only TIdBytes property used to access the byte values for an IP address in their Network byte-order representation. 

The length of the return value is dependent on the value in AddrType

HToNBytes use the TIdStack.HostToNetwork method to convert the value for the IP address.

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