Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2012-07

Byte ordering in IP4 and IP6 addresses

1 message · 1 person ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Mark Morgan Lloyd

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]