[fpc-pascal] fpbind ipv6 version
wkitty42 at windstream.net
wkitty42 at windstream.net
Mon Oct 28 00:24:54 CET 2019
On 10/27/19 6:23 PM, Sven Barth via fpc-pascal wrote:
> <wkitty42 at windstream.net> schrieb am So., 27.
> Okt. 2019, 19:32:
>
> On 10/27/19 11:56 AM, Alexander Grotewohl wrote:
> > const
> > IN6ADDR_ANY: array[0..3] of longint = (0, 0, 0, 0);
>
> well, that certainly can't work... the IPv6 format is max 8 four character hex
> numbers and 128 bits...
>
> https://en.wikipedia.org/wiki/IPv6_address#Representation
>
>
> 4 * 32-bit = 128-bit?
>
> Also 8 four *character* hexnumbers are 4 eight character hexnumbers aka four
> 32-bit integers.
erk! i totally missed that was using longint... not sure if that would work,
either, though, since longint can go negative... but i was mainly looking at the
format and expecting to see 8 fields, not four... i guess i needed more c0ffee :(
--
NOTE: No off-list assistance is given without prior approval.
*Please keep mailing list traffic on the list unless*
*a signed and pre-paid contract is in effect with us.*
More information about the fpc-pascal
mailing list