It was added for Linux 3.9 in 2013.. maybe the code predates that?

--
Alexander Grotewohl
https://dcclost.com
________________________________
From: fpc-pascal <fpc-pascal-boun...@lists.freepascal.org> on behalf of Michael 
Van Canneyt <mich...@freepascal.org>
Sent: Tuesday, May 19, 2020 12:57:37 PM
To: FPC-Pascal users discussions <fpc-pascal@lists.freepascal.org>
Cc: bo.bergl...@gmail.com <bo.bergl...@gmail.com>
Subject: Re: [fpc-pascal] How to implement a simple tcp/ip connection?



On Tue, 19 May 2020, Giuliano Colla wrote:

> I'm struggling with a similar problem. It would appear that the easiest
> way would be just take advantage of the Sockets unit. You only must
> define some more constants, such as SO_REUSEPORT and SOCK_NONBLOCK which
> are missing in fpc.

They are not missing.

How do you think fpsock and lnet implement non-blocking ?
It's simply called  O_NONBLOCK.

For some reason, SO_REUSEPORT was commented for linux, I uncommented it.

Michael.
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Reply via email to