[Lazarus] How do use sockets?
graemeg.lists at gmail.com
Sun Nov 27 12:51:55 CET 2011
On 27 November 2011 02:25, Bernd <prof7bit at ....> wrote:
> 3 months, so there are still some signs of life:
If you are lucky, 2-3 commits a year. I'd say LNet is on life support,
with the battery charge running very low. But then, it just takes on
dedicated developer to revive a dying project.
>> The other problem with LNet is that it doesn't have a lot of TCP
>> protocols implemented.
> This might be a valid point, depending on what you need it for.
I don't know of any other TCP component suite that has so many
protocols implemented. Indy has over a 100+ protocols implemented -
that is just amazing. And in nearly all cases, those protocols include
the client and server parts - this is something that is mostly missing
from all other competing projects.
I have just completed full cross-platform n-tier support in tiOPF -
thanks to Indy. :-) Finally, n-tier support with FPC. No need for
something like CORBA, Midas or TCientDataset. tiOPF's n-tier support
uses HTTP + XML. The XML nodes are compacted (short node names instead
of long names - configurable by developer), then base64 encoded, then
zlib'ed (configurable by developer) before transmission. Now that I
have it working, I'll see if I can implement JSON support too -
reducing the data packets even further, because XML is very verbose.
And what is really cool, is that I can switch between local (offline)
storage, client/server or n-tier by simply changing a compiler define
- no code changes required at all in my projects! Awesome.
- Graeme -
fpGUI - a cross-platform Free Pascal GUI toolkit
More information about the Lazarus