<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
</head>
<body>
<div dir="auto" style="direction: ltr; margin: 0; padding: 0; font-family: sans-serif; font-size: 11pt; color: black; ">
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.<span id="ms-outlook-android-cursor"></span><br>
<br>
</div>
<div dir="auto" style="direction: ltr; margin: 0; padding: 0; font-family: sans-serif; font-size: 11pt; color: black; ">
<span id="OutlookSignature">
<div dir="auto" style="direction: ltr; margin: 0; padding: 0; font-family: sans-serif; font-size: 11pt; color: black; ">
--<br>
</div>
<div dir="auto" style="direction: ltr; margin: 0; padding: 0; font-family: sans-serif; font-size: 11pt; color: black; ">
Alexander Grotewohl<br>
</div>
<div dir="auto" style="direction: ltr; margin: 0; padding: 0; font-family: sans-serif; font-size: 11pt; color: black; ">
<a href="https://dcclost.com">https://dcclost.com</a></div>
</span><br>
</div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> fpc-pascal <fpc-pascal-bounces@lists.freepascal.org> on behalf of Giuliano Colla <giuliano.colla@fastwebnet.it><br>
<b>Sent:</b> Thursday, May 14, 2020 12:21:36 PM<br>
<b>To:</b> FPC-Pascal users discussions <fpc-pascal@lists.freepascal.org><br>
<b>Subject:</b> [fpc-pascal] How to implement a simple tcp/ip connection?</font>
<div> </div>
</div>
<div class="BodyFragment"><font size="2"><span style="font-size:11pt;">
<div class="PlainText">Hi all,<br>
<br>
I need to implement a simple dedicated TCP/IP connection between a <br>
client and a server. Nothing fancy, just sending and receiving short <br>
strings. I have used in the past for that purpose the unit Sockets <br>
lifting it from Kylix. This unit was taking advantage of libc, and this <br>
rules it out.<br>
<br>
I see that fpc provides a Socket unit in rtl-extra and a fpSock unit in <br>
fcl-net. At first glance they both appear to provide what I need.<br>
<br>
Can somebody which has used those units point me in the right direction, <br>
before I painfully study in detail those units.<br>
<br>
Thanks for any help.<br>
<br>
Giuliano<br>
<br>
-- <br>
Do not do to others as you would have them do to you.They might have different tastes.<br>
<br>
_______________________________________________<br>
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org<br>
<a href="https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal">https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal</a><br>
</div>
</span></font></div>
</body>
</html>