[fpc-pascal] fpbind ipv6 version

Sven Barth pascaldragon at googlemail.com
Sun Oct 27 23:23:40 CET 2019


<wkitty42 at windstream.net> schrieb am So., 27. Okt. 2019, 19:32:

> On 10/27/19 11:56 AM, Alexander Grotewohl wrote:
> > I sent this direct to him on accident but I don't think it worked
> anyways
> > (bounced?)
> >
> > Just some test code so not very pretty. It works, but IN6ADDR_ANY was
> missing
> > and I'm not familiar enough with ipv6 to know how it might be defined in
> other
> > languages.
> >
> > uses sockets;
> > 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.

Regards,
Sven
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20191027/b90e26c7/attachment.html>


More information about the fpc-pascal mailing list