Firebirdd-x.x in protocol property of ZConnection

Forum related to Firebird

Moderators: gto, cipto_kh, EgonHugeist

Post Reply
albert.pratama
Fresh Boarder
Fresh Boarder
Posts: 8
Joined: 04.10.2007, 10:13
Location: Yogyakarta, Indonesia
Contact:

Firebirdd-x.x in protocol property of ZConnection

Post by albert.pratama »

Hi everyone,

Does anybody know what the 'firebirdd-x.x' option in protocol property is used for? I've been searching in this forum, but didn't found any answers or posts.

Albert
User avatar
mdaems
Zeos Project Manager
Zeos Project Manager
Posts: 2766
Joined: 20.09.2005, 15:28
Location: Brussels, Belgium
Contact:

Post by mdaems »

Yep... It can be used to load the embedded firebird.dll next to the client library.

eg ZPlainFirebird20.pas

Code: Select all

{ ***************** Plain API Constants definition **************** }

const
  WINDOWS1_DLL_LOCATION   = 'fbclient20.dll';
  WINDOWS1_DLL_LOCATION_EMBEDDED = 'fbclientd20.dll';
This can be used to copy from embedded to client-server firebird using 2 different dll's on different connections.

I think naming comes from the analogy with mysql. There it was implemented first (because of some differences in API-calling made it necessary to have some switch anyway)

Is this answer clear enough?

Mark
albert.pratama
Fresh Boarder
Fresh Boarder
Posts: 8
Joined: 04.10.2007, 10:13
Location: Yogyakarta, Indonesia
Contact:

Post by albert.pratama »

Kinda being more confused :(

So, if I wrote a code to be run in client's pc with firebird embedded, I better use this 'firebirdd-x.x' protocol, instead of 'firebird-x.x'?

Thanks for helping.

Albert
User avatar
mdaems
Zeos Project Manager
Zeos Project Manager
Posts: 2766
Joined: 20.09.2005, 15:28
Location: Brussels, Belgium
Contact:

Post by mdaems »

For firebird it seems not to make a difference, for the moment. You can just replace the client-server dll for the embedded server dll.
But :
- if you start a new project and plan to use the embedded server it's more verbose to use de firebirdd protocol.
- if you want to use both dll's at the same time in your program (eg for copying data) this is an easy way to do it.
- it removes the need to have the same name for 2 different dll's. You can have them both in your system path and just choose which one to use for every individual project.
- maybe the name we chose is a little strange...

Mark
albert.pratama
Fresh Boarder
Fresh Boarder
Posts: 8
Joined: 04.10.2007, 10:13
Location: Yogyakarta, Indonesia
Contact:

Post by albert.pratama »

Ok Mark, it's all clear now. Thanks!

Albert
Post Reply