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

2020-05-24 Thread Bo Berglund via fpc-pascal
On Tue, 19 May 2020 18:25:54 +0200, Giuliano Colla wrote: >Now I'm planning to look in more detail the old Delphi implementation, >in order to see how they were tacking advantage of Libc. If you're >interested I'll let you know my results. > Yes, please! -- Bo Berglund Developer in Sweden

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

2020-05-19 Thread Michael Van Canneyt
On Tue, 19 May 2020, Giuliano Colla wrote: Il 19/05/2020 18:57, Michael Van Canneyt ha scritto: They are not missing. How do you think fpsock and lnet implement non-blocking ? It's simply called  O_NONBLOCK. I'm using fpc 3.0.4. With just Sockets in the uses clause both SOCK_NONBLOCK

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

2020-05-19 Thread Norbert Saint Georges
Giuliano Colla a écrit : Il 19/05/2020 18:57, Michael Van Canneyt ha scritto: They are not missing. How do you think fpsock and lnet implement non-blocking ? It's simply called  O_NONBLOCK. I'm using fpc 3.0.4. With just Sockets in the uses clause both SOCK_NONBLOCK and O_NONBLOCK give an

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

2020-05-19 Thread Giuliano Colla
Il 19/05/2020 18:57, Michael Van Canneyt ha scritto: They are not missing. How do you think fpsock and lnet implement non-blocking ? It's simply called  O_NONBLOCK. I'm using fpc 3.0.4. With just Sockets in the uses clause both SOCK_NONBLOCK and O_NONBLOCK give an Identifier not found

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

2020-05-19 Thread Alexander Grotewohl
Subject: Re: [fpc-pascal] How to implement a simple tcp/ip connection? On Tue, 19 May 2020, Giuliano Colla wrote: > I'm struggling with a similar problem. It would appear that the easiest > way would be just take advantage of the Sockets unit. You only must > define some more

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

2020-05-19 Thread Michael Van Canneyt
On Tue, 19 May 2020, Giuliano Colla wrote: I'm struggling with a similar problem. It would appear that the easiest way would be just take advantage of the Sockets unit. You only must define some more constants, such as SO_REUSEPORT and SOCK_NONBLOCK which are missing in fpc. They are not

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

2020-05-19 Thread Giuliano Colla
I'm struggling with a similar problem. It would appear that the easiest way would be just take advantage of the Sockets unit. You only must define some more constants, such as SO_REUSEPORT and SOCK_NONBLOCK which are missing in fpc. I just made some preliminary tests, and it looks like it's

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

2020-05-17 Thread Bo Berglund via fpc-pascal
On Sat, 16 May 2020 23:24:34 +0100, Graeme Geldenhuys wrote: >> Well the simplest way to get Indy10 into Lazarus is via Online Package >> Manager! > >Do they (whoever it might be) keep it up to date with the lastest Indy? I believe that it is actually Remy Lebeau who is doing that (I might be

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

2020-05-16 Thread Graeme Geldenhuys
On 16/05/2020 7:13 pm, Bo Berglund via fpc-pascal wrote: > > Well the simplest way to get Indy10 into Lazarus is via Online Package > Manager! Do they (whoever it might be) keep it up to date with the lastest Indy? > it is a rather steep climb since Indy10 is entirely blocking and the > Delphi

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

2020-05-16 Thread Bo Berglund via fpc-pascal
On Thu, 14 May 2020 22:02:01 +0100, Graeme Geldenhuys wrote: >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

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 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] 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 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

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

2020-05-14 Thread Alexander Grotewohl
: Thursday, May 14, 2020 12:21:36 PM To: FPC-Pascal users discussions 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

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

[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