[Lazarus] How do use sockets?

Graeme Geldenhuys graemeg.lists at gmail.com
Sun Nov 27 14:29:32 CET 2011

On 27/11/2011, Marcos Douglas <md at ......net> wrote:
> OK.
> I found this http://lazarus.freepascal.org/index.php/topic,14147.0.html
> but did not tested.

I thought there might be others - but all relatively unknown and untested.

I guess I am a bit spoiled by have all my code, and more importantly,
the tiOPF very well unit tested. Automated tests run every three hours
to make sure everything is rock solid.

Regarding that link you posted, thanks for that. It might be worth if
somebody adds that info to the FPC wiki. Currently the wiki has no
info on n-tier support for FPC. I briefly read the forum post, and it
sounds promising, but a the same time, it sounds like it still has
quite a few problems too. I'll create a small wiki page mentioning
some multi-tier option for FPC developer. Somebody else can extend
that page further then.

> But there are apps that not uses tiOPF, but could benefit from using n-tier.

But then I can't say "It's the best way to write database
applications". ;-) I have switched to using tiOPF some 8 years ago,
for all my database needs (and even non-database needs). I simply
cannot see myself ever going back to dropping a TQuery, TDataset or
TDataSource etc components on a form, and with every field defined,
locking my UI into a specific database layout and vendor lock-in with
every database component used.

Below is what I came from 8 years ago, and I vowed never to go that
route again! EVER! :)


Saying all that, tiOPF is open source, so anybody can grab the
application server code, and see if they can tweak it for a more
traditional Delphi-style database development model. I'll start
documenting the units used for Remote Persistence, which will help
non-tiOPF users if they wanted to adapt the code for their needs.

> You have loaded the new sources?

No, I'll commit the changes tomorrow morning. I've just finished the
code last night. I've tested under Delphi 7, and FPC under 32-bit
Windows and 32-bit Linux. I want to test under 64-bit Linux tomorrow
at work, and if all related unit tests pass, then I'll commit it to
the repository.

> Is this the right SVN paths?
> https://tiopf.svn.sourceforge.net/svnroot/tiopf/tiOPF2/Trunk  (source)

This is the correct path. The demo I was talking about is also under this URI.

The documentation describing most of Demo 18 can be found below. It
was a presentation Peter H. gave in 2008 in Australia.


  - Graeme -

fpGUI - a cross-platform Free Pascal GUI toolkit

More information about the Lazarus mailing list