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

2020-05-14 Thread Giuliano Colla
Thank you to all of you guys. Now I have a much better picture -- 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

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

2020-05-14 Thread Graeme Geldenhuys
On 14/05/2020 5:21 pm, Giuliano Colla wrote: > I need to implement a simple dedicated TCP/IP connection between a > client and a server. You can always use the Indy TCP components too. I've used them for years under Delphi and FPC with great success. Huge amounts of protocols are implement and

Re: [fpc-pascal] Different behaviour between FPC 2.6.4 and FPC 3.0.4

2020-05-14 Thread Virgo Pärna via fpc-pascal
On Tue, 12 May 2020 11:05:15 +0200, Sven Barth via fpc-pascal wrote: > Virgo Pärna via fpc-pascal schrieb am >> >> May FPC 2.6.4 was configured to default to delphi or tp mode? In >> those modes @ is not required to assigne procedure/function to procvar. >> > > FPC's default mode was

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

2020-05-14 Thread Luca Olivetti
El 14/5/20 a les 18:21, Giuliano Colla ha escrit: 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

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

2020-05-14 Thread Michael Van Canneyt
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

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

2020-05-14 Thread Alexander Grotewohl
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 on behalf of Giuliano Colla Sent:

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

2020-05-14 Thread Giuliano Colla
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

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

2020-05-14 Thread Bo Berglund via fpc-pascal
On Thu, 14 May 2020 18:21:36 +0200, Giuliano Colla wrote: >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. LNet is a package that contains useful socket classes and refer back to sockets. Can be