Re: [fpc-pascal] fpbind ipv6 version

2019-10-28 Thread Rainer Stratmann
On Sonntag, 27. Oktober 2019 10:32:11 CET Michael Van Canneyt wrote: > On Sat, 26 Oct 2019, Rainer Stratmann wrote: > > https://www.freepascal.org/docs-html/current/rtl/sockets/fpbind.html > > > > Is there an example for IPV6? > > > > function fpbind( > > > > s: cint; > > addrx: psockaddr; > >

Re: [fpc-pascal] fpbind ipv6 version

2019-10-27 Thread Sven Barth via fpc-pascal
Am 28.10.2019 um 00:24 schrieb wkitt...@windstream.net: On 10/27/19 6:23 PM, Sven Barth via fpc-pascal wrote: 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

Re: [fpc-pascal] fpbind ipv6 version

2019-10-27 Thread wkitty42
On 10/27/19 6:23 PM, Sven Barth via fpc-pascal wrote: 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 ch

Re: [fpc-pascal] fpbind ipv6 version

2019-10-27 Thread Sven Barth via fpc-pascal
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

Re: [fpc-pascal] fpbind ipv6 version

2019-10-27 Thread wkitty42
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 la

Re: [fpc-pascal] fpbind ipv6 version

2019-10-27 Thread Alexander Grotewohl
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: ar

Re: [fpc-pascal] fpbind ipv6 version

2019-10-27 Thread Michael Van Canneyt
On Sat, 26 Oct 2019, Rainer Stratmann wrote: https://www.freepascal.org/docs-html/current/rtl/sockets/fpbind.html Is there an example for IPV6? function fpbind( s: cint; addrx: psockaddr; addrlen: TSockLen ):cint; I guess psockaddr is different in IPV6 version. No, it does not have to

[fpc-pascal] fpbind ipv6 version

2019-10-26 Thread Rainer Stratmann
https://www.freepascal.org/docs-html/current/rtl/sockets/fpbind.html Is there an example for IPV6? function fpbind( s: cint; addrx: psockaddr; addrlen: TSockLen ):cint; I guess psockaddr is different in IPV6 version. ___ fpc-pascal maillist - f