On 10/27/19 6:23 PM, Sven Barth via fpc-pascal wrote:
<wkitt...@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.*
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Reply via email to