Recent

Author Topic: TCP / UDP component for laxarus, wich one ?  (Read 12229 times)

pietrobossi

  • Newbie
  • Posts: 4
TCP / UDP component for laxarus, wich one ?
« on: February 22, 2007, 10:49:54 pm »
Hello,

i used to work in Delphi7 with Indy......... to do a very simple program that send and receive UDP broadcast messages on a PC LAN.

I am very interested in porting this software (radio communications simulation) in the linux world, building from scratch. I saw that for lazarus i can select between:

- Indy
- Lnet
- others

The simplest look lnet, but i would like tro try Indy too, but i am confused about my google search......... does it exist a indy version that can be easy installed under lazarus ?

release ?
download from ?
simple examples ?

thanks all gentlemens for your help !

Pietro

tlacuache

  • New Member
  • *
  • Posts: 14
    • http://grovers.us/seth
RE: TCP / UDP component for laxarus, wich one ?
« Reply #1 on: February 23, 2007, 05:06:07 pm »
The best one I have found, hands down, is synapse.

http://synapse.ararat.cz

-SG

Nokao

  • New Member
  • *
  • Posts: 34
TCP / UDP component for laxarus, wich one ?
« Reply #2 on: February 26, 2007, 04:47:18 pm »
Ciao Pietro,

the best I tryed is lnet...

I tryed to install Indy tons of times without success, it's still hard to use inside Lazarus.

Just to take some practice I suggest you to start with lnet or something similar (if you have to use databases use SQLdb).

Xmister

  • Newbie
  • Posts: 5
TCP / UDP component for laxarus, wich one ?
« Reply #3 on: March 22, 2007, 11:37:47 pm »
I don't want to create a new topic, so I ask here.
I tryed lnet for Server (TlTcpComponent and Listen procedure) but it can only receive messages from another lnet client. So if the sender is not and lnet client, i receive nothing, in the OnReceive proceudre with the aSock.GetMessage(s), s will be empty. If there is a solution or a better visual component which has OnReceive etc. procedures I would like to know about that. Thx

Xmister

  • Newbie
  • Posts: 5
TCP / UDP component for laxarus, wich one ?
« Reply #4 on: March 25, 2007, 01:16:10 am »
I get these errors before I can read anything

Shutdown error: [107] Transport endpoint is not connected

Receive Error: [104] Connection reset by peer

Almindor

  • Sr. Member
  • ****
  • Posts: 412
    • http://www.astarot.tk
TCP / UDP component for laxarus, wich one ?
« Reply #5 on: March 25, 2007, 01:32:48 pm »
What client do you use on the other side? These errors mean that the connection got closed uncleanly by them...

Xmister

  • Newbie
  • Posts: 5
TCP / UDP component for laxarus, wich one ?
« Reply #6 on: March 25, 2007, 06:35:02 pm »
It's always different, what I want to write is a hublist server, and there are a lot of hubsoft with different client sockets. But I already wrote a hublist server for windows with delphi, on that program I used TServerSocket and everything worked well, but in lazarus there isn't a built-in socket server like that :(

theo

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1927
TCP / UDP component for laxarus, wich one ?
« Reply #7 on: March 25, 2007, 07:25:29 pm »
Why don't you try Synapse? http://synapse.ararat.cz

Xmister

  • Newbie
  • Posts: 5
TCP / UDP component for laxarus, wich one ?
« Reply #8 on: March 26, 2007, 05:02:57 pm »
Because it's not a visual component, and as I said it hasn't got an Onreceive method, and to use it I have to create new threads for that( like in the echoserver demo ). So it's a bit complicated, and I hope there is an easiest way too.

 

TinyPortal © 2005-2018