Recent

Author Topic: Porting ICS socket app to Lazarus  (Read 8164 times)

jl

  • Full Member
  • ***
  • Posts: 178
Porting ICS socket app to Lazarus
« on: April 07, 2011, 07:10:56 pm »
Hi, i need to port a D7 ICS TCP socket application to Lazarus.  First, I need to get rid of ICS as it doesn't work for Linux.  I did some Googling and found out that LNET is non-blocking.  LNET seems to be quite early stage so I wonder if there's a better alternative.  Indy and Synapse are out as they are blocking.

Now my main problem with LNET is that I am porting my application in stages (due to complexity of the project) so i will be using Delphi for the time being and the problem is that LNET can't work with Delphi.

Would appreciate any thoughts.  Thanks.   :)

Leledumbo

  • Hero Member
  • *****
  • Posts: 8757
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: Porting ICS socket app to Lazarus
« Reply #1 on: April 07, 2011, 07:19:29 pm »
Quote
LNET seems to be quite early stage
But have you checked its features? It's actually more advanced than ICS AFAIK (at least in its current version).
Quote
Now my main problem with LNET is that I am porting my application in stages (due to complexity of the project) so i will be using Delphi for the time being and the problem is that LNET can't work with Delphi.
Keep the Delphi version working while you slowly create the Lazarus version.

jl

  • Full Member
  • ***
  • Posts: 178
Re: Porting ICS socket app to Lazarus
« Reply #2 on: April 08, 2011, 02:15:38 pm »
Quote
LNET seems to be quite early stage
But have you checked its features? It's actually more advanced than ICS AFAIK (at least in its current version).
Quote
Now my main problem with LNET is that I am porting my application in stages (due to complexity of the project) so i will be using Delphi for the time being and the problem is that LNET can't work with Delphi.
Keep the Delphi version working while you slowly create the Lazarus version.

Thanks, I guess this is the only way.

jl

  • Full Member
  • ***
  • Posts: 178
Re: Porting ICS socket app to Lazarus
« Reply #3 on: April 09, 2011, 09:59:48 am »
How about TTcpServer and TTcpClient?

There's a mention here but i can't seem to find the doc or anywhere that indicates it exists for fpc.

http://www.lazarus.freepascal.org/index.php?topic=9392.0



*Note: I found it, it's inside fpsock.pp.
« Last Edit: April 09, 2011, 11:49:18 am by touchring »

marcov

  • Administrator
  • Hero Member
  • *
  • Posts: 11452
  • FPC developer.
Re: Porting ICS socket app to Lazarus
« Reply #4 on: April 10, 2011, 12:27:00 pm »
How about TTcpServer and TTcpClient?

There's a mention here but i can't seem to find the doc or anywhere that indicates it exists for fpc.

http://www.lazarus.freepascal.org/index.php?topic=9392.0
*Note: I found it, it's inside fpsock.pp.

Nobody touched that code for maybe even 10 years. I advise against using it.

jl

  • Full Member
  • ***
  • Posts: 178
Re: Porting ICS socket app to Lazarus
« Reply #5 on: April 10, 2011, 12:30:33 pm »
How about TTcpServer and TTcpClient?

There's a mention here but i can't seem to find the doc or anywhere that indicates it exists for fpc.

http://www.lazarus.freepascal.org/index.php?topic=9392.0
*Note: I found it, it's inside fpsock.pp.

Nobody touched that code for maybe even 10 years. I advise against using it.

ok, thanks for the tip.  I did noticed that TTcpServer fpc is not the same as TTcpServer  delphi.

 

TinyPortal © 2005-2018