[fpc-pascal] How to implement a simple tcp/ip connection?
Michael Van Canneyt
michael at freepascal.org
Thu May 14 18:56:35 CEST 2020
On Thu, 14 May 2020, Giuliano Colla wrote:
> 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.
The TFTPHTTPClient and server components both use fpSock.
Michael.
More information about the fpc-pascal
mailing list