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

Alexander Grotewohl alex at dcclost.com
Thu May 14 19:00:17 CEST 2020

the sockets unit should work exactly like any tutorial for c sockets for linux. a handful of the functuons need an fp prefix but should work mostly the same.

Alexander Grotewohl

From: fpc-pascal <fpc-pascal-bounces at lists.freepascal.org> on behalf of Giuliano Colla <giuliano.colla at fastwebnet.it>
Sent: Thursday, May 14, 2020 12:21:36 PM
To: FPC-Pascal users discussions <fpc-pascal at lists.freepascal.org>
Subject: [fpc-pascal] How to implement a simple tcp/ip connection?

Hi all,

I need to implement a simple dedicated TCP/IP connection between a
client and a server. Nothing fancy, just sending and receiving short
strings. I have used in the past for that purpose the unit Sockets
lifting it from Kylix. This unit was taking advantage of libc, and this
rules it out.

I see that fpc provides a Socket unit in rtl-extra and a fpSock unit in
fcl-net. At first glance they both appear to provide what I need.

Can somebody which has used those units point me in the right direction,
before I painfully study in detail those units.

Thanks for any help.


Do not do to others as you would have them do to you.They might have different tastes.

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/20200514/9fc23235/attachment.htm>

More information about the fpc-pascal mailing list