Forum > Networking and Web Programming
Networking Component
Jishaxe:
What do you think is better?
theo:
I think you can't answer this by a simple poll.
lNet is well integrated with Lazarus and should work on most platforms afaik.
Afaik it's also "event driven" (I know only little about it).
Synapse is very well tested (many years for Delphi and Kylix) and works on Windows and Unices without problems. There are some issues with OSX and WinCE afaik.
Synapse is more for the programmer who whants to know what's really happening.
It has some "convenience" functions but beyond that, it's leaving decisions about when to use threads etc. up to you.
I for one would use lNet or Indy for "quick and dirty" programming.
I would always choose Synapse for writing a performant/scalable server.
Jishaxe:
Thanks for your explanation.
OpenLieroXor:
lNet is much easier to use because of event handlers, built-in threading, and LCL components implementing lots of operations on sockets. However, it has very basic functionality and, for me, it's usable only for very simple communication. Synapse is the most powerful network library, which allows you to take much better control over your sockets, but it's harder to use - you need to know a bit how the network sockets work, and you need to code in your own a lot of things done automatically by lNet, like threading, etc. When I began network programming with Delphi, I used TServerSocket and TClientSocket components, so when I moved to Lazarus I began to use lNet, because it was very similar to my old components. But later such 'all-in-one' network components weren't functional enough for me, so I learned Synapse. Now I use Synapse in every project.
marcov:
Well, Indy10 obviously.
Navigation
[0] Message Index
[#] Next page