[fpc-pascal] How to implement a simple tcp/ip connection?
Michael Van Canneyt
michael at freepascal.org
Tue May 19 18:57:37 CEST 2020
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.
More information about the fpc-pascal
mailing list