<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
</head>
<body>
<div style="color: rgb(33, 33, 33); background-color: rgb(255, 255, 255); text-align: left;" dir="auto">
It was added for Linux 3.9 in 2013.. maybe the code predates that?</div>
<div id="ms-outlook-mobile-signature">
<div><br>
</div>
--<br>
Alexander Grotewohl<br>
<a href="https://dcclost.com" target="_blank">https://dcclost.com</a></div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> fpc-pascal <fpc-pascal-bounces@lists.freepascal.org> on behalf of Michael Van Canneyt <michael@freepascal.org><br>
<b>Sent:</b> Tuesday, May 19, 2020 12:57:37 PM<br>
<b>To:</b> FPC-Pascal users discussions <fpc-pascal@lists.freepascal.org><br>
<b>Cc:</b> bo.berglund@gmail.com <bo.berglund@gmail.com><br>
<b>Subject:</b> Re: [fpc-pascal] How to implement a simple tcp/ip connection?</font>
<div> </div>
</div>
<div class="BodyFragment"><font size="2"><span style="font-size:11pt;">
<div class="PlainText"><br>
<br>
On Tue, 19 May 2020, Giuliano Colla wrote:<br>
<br>
> I'm struggling with a similar problem. It would appear that the easiest <br>
> way would be just take advantage of the Sockets unit. You only must <br>
> define some more constants, such as SO_REUSEPORT and SOCK_NONBLOCK which <br>
> are missing in fpc.<br>
<br>
They are not missing.<br>
<br>
How do you think fpsock and lnet implement non-blocking ?<br>
It's simply called  O_NONBLOCK.<br>
<br>
For some reason, SO_REUSEPORT was commented for linux, I uncommented it.<br>
<br>
Michael.<br>
_______________________________________________<br>
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org<br>
<a href="https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal">https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal</a><br>
</div>
</span></font></div>
</body>
</html>