[fpc-pascal] How to implement a simple tcp/ip connection?

Alexander Grotewohl alex at dcclost.com
Tue May 19 19:13:04 CEST 2020

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

Alexander Grotewohl
From: fpc-pascal <fpc-pascal-bounces at lists.freepascal.org> on behalf of Michael Van Canneyt <michael at freepascal.org>
Sent: Tuesday, May 19, 2020 12:57:37 PM
To: FPC-Pascal users discussions <fpc-pascal at lists.freepascal.org>
Cc: bo.berglund at gmail.com <bo.berglund at 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.

fpc-pascal maillist  -  fpc-pascal at lists.freepascal.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20200519/66ea5f89/attachment.htm>

More information about the fpc-pascal mailing list