[fpc-pascal] fpbind ipv6 version

Michael Van Canneyt michael at freepascal.org
Sun Oct 27 10:32:11 CET 2019



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 be.. 
The addrlen will differ of course. That's why it is there to begin with. 
Maybe an overload could be added, I would need to look into this to see if
it is required.

Michael.


More information about the fpc-pascal mailing list