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 https://dcclost.com ________________________________ From: fpc-pascal <fpc-pascal-boun...@lists.freepascal.org> on behalf of Giuliano Colla <giuliano.co...@fastwebnet.it> Sent: Thursday, May 14, 2020 12:21:36 PM To: FPC-Pascal users discussions <fpc-pascal@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. Giuliano -- Do not do to others as you would have them do to you.They might have different tastes. _______________________________________________ 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