[fpc-pascal] Byte ordering in IP4 and IP6 addresses

Mark Morgan Lloyd markMLl.fpc-pascal at telemetry.co.uk
Mon Jul 30 19:46:59 CEST 2012


If preparing an address returned by fpgetpeername() for display or 
logging, should I be using HostAddrToStr() or NetAddrToStr()?

Is anybody aware that HostAddrToStr() and HostAddrToStr6() appear to 
return addresses different ways round in 2.6.0 on Linux x86? 
NetAddrToStr() and NetAddrToStr6() appear to be consistent.

-- 
Mark Morgan Lloyd
markMLl .AT. telemetry.co .DOT. uk

[Opinions above are the author's, not those of his employers or colleagues]



More information about the fpc-pascal mailing list