FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour ADS or similar products
Posts: 1091
Joined: Thu Nov 17, 2005 11:08 AM
ADS or similar products
Posted: Thu Feb 24, 2011 01:53 PM

Hi,
I'm looking for a product that permits to me modify a program written by me from the
typical file/server to client/server architecture.
I'm looking for a low cost solution.
Client pc are connected to server through several vpn.
Any advice?

Best regards

marco

Marco Boschi
info@marcoboschi.it
Posts: 1335
Joined: Fri Jun 13, 2008 11:04 AM
Re: ADS or similar products
Posted: Fri Feb 25, 2011 04:09 AM
I'm looking for a low cost solution.

How about MySQL as your database ?

Regards
Anser
Posts: 1091
Joined: Thu Nov 17, 2005 11:08 AM
Re: ADS or similar products
Posted: Sun Feb 27, 2011 06:12 PM

Anser,
please show me some links to read informations
Many thanks
marco

Marco Boschi
info@marcoboschi.it
Posts: 366
Joined: Wed Aug 30, 2006 05:25 PM
Re: ADS or similar products
Posted: Mon Feb 28, 2011 01:27 PM

Marco:
The solutions are
ADS, tDolphing (MySql, de Daniel), Eagle1 (MySql,de Manu), and Apollo.
Nobody speak about Apollo and I don't know why.

http://www.vistasoftware.com/apollo_server.asp

Sorry for my bad English

Regards
Ruben Fernandez

Gracias y Saludos

Ruben Fernandez - Uruguay

FWH 11.06, Harbour, Borland 5.82
Posts: 3358
Joined: Fri Oct 07, 2005 08:20 PM
Re: ADS or similar products
Posted: Tue Mar 01, 2011 12:17 AM

Marco:

Just my five cents, ADO as another one option.

http://sqlcmd.blogspot.com/

Regards

SOI, s.a. de c.v.
estbucarm@gmail.com
http://www.soisa.mex.tl/
http://sqlcmd.blogspot.com/
Tel. (722) 174 44 45
Carpe diem quam minimum credula postero
Posts: 464
Joined: Tue May 16, 2006 07:47 AM
Re: ADS or similar products
Posted: Tue Mar 01, 2011 02:55 AM

Hi Marco

You can actually do client server with [x}Harbour code alone. It doesn't give you all the features you may get with an SQL based product but it is very fast and easy to understand.

I did exactly that when faced with the exact same situation that you seem to be facing. I used IP sockets as my transport layer and arrays serialized using HB_Serialize() and HB_Deserialize() to wrap up query details and returned data and error codes.

Some other nice features of this approach are:

you can use existing tables unaltered
if your code is OO you can directly update object properties
it is a cross platform solution ( clients and servers can be run on any OS that supports [x}Harbour and its TIP library.

This isn't the solution for everyone but if you are interested I can provide you with some working code. When I wrote this I took the opportunity to restructure how my queries worked (so that they are now basically parameterized objects) but that isn't necessary.

If you have a relatively large number of clients you may need to implement threads - I may do that at some point inn the future - currently I effectively have a series of servers (on the one physical PC) listening on different ports and different clients use different ports (read form a local config file). It arguably isn't the prettiest way but it is very effective and reliable.

Regards
Doug

PS I originally coded this in xHarbour but then switched to Harbour but it will work in either.

Posts: 284
Joined: Mon Oct 24, 2005 08:04 PM
Re: ADS or similar products
Posted: Tue Mar 01, 2011 10:19 PM
Doug:

I'd like to see some working code if you don't mind.

Thanks,
Randal

xProgrammer wrote:Hi Marco

You can actually do client server with [x}Harbour code alone. It doesn't give you all the features you may get with an SQL based product but it is very fast and easy to understand.

I did exactly that when faced with the exact same situation that you seem to be facing. I used IP sockets as my transport layer and arrays serialized using HB_Serialize() and HB_Deserialize() to wrap up query details and returned data and error codes.

Some other nice features of this approach are:

you can use existing tables unaltered
if your code is OO you can directly update object properties
it is a cross platform solution ( clients and servers can be run on any OS that supports [x}Harbour and its TIP library.

This isn't the solution for everyone but if you are interested I can provide you with some working code. When I wrote this I took the opportunity to restructure how my queries worked (so that they are now basically parameterized objects) but that isn't necessary.

If you have a relatively large number of clients you may need to implement threads - I may do that at some point inn the future - currently I effectively have a series of servers (on the one physical PC) listening on different ports and different clients use different ports (read form a local config file). It arguably isn't the prettiest way but it is very effective and reliable.

Regards
Doug

PS I originally coded this in xHarbour but then switched to Harbour but it will work in either.
Posts: 1091
Joined: Thu Nov 17, 2005 11:08 AM
Re: ADS or similar products
Posted: Wed Mar 02, 2011 08:28 AM

Thanks guys

Marco Boschi
info@marcoboschi.it
Posts: 464
Joined: Tue May 16, 2006 07:47 AM
Re: ADS or similar products
Posted: Wed Mar 02, 2011 11:25 AM

Hi Randal, Marco

Bear with me for a day or two and I'll post my solution. It's late at night and I have to get Mum out of hospital and settled back home tomorrow after her fall.

Regards
Doug

Posts: 9022
Joined: Thu Oct 06, 2005 08:17 PM
Re: ADS or similar products
Posted: Wed Mar 02, 2011 02:25 PM

My best wishes for a fast recovery to your Mum.

EMG

Posts: 512
Joined: Mon Oct 17, 2005 10:38 AM
Re: ADS or similar products
Posted: Thu Mar 03, 2011 07:09 AM
Enrico Maria Giordano wrote:My best wishes for a fast recovery to your Mum.

EMG


Me too
Posts: 1091
Joined: Thu Nov 17, 2005 11:08 AM
Re: ADS or similar products
Posted: Thu Mar 03, 2011 09:56 AM

>Marco:
>Nobody speak about Apollo and I don't know why.

>Ruben Fernandez

Do you think is the right product for a Fivewin/xHarbour programmer?
Where can I find some pieces of code to better understand the problem?

Marco Boschi
info@marcoboschi.it
Posts: 464
Joined: Tue May 16, 2006 07:47 AM
Re: ADS or similar products
Posted: Thu Mar 03, 2011 10:27 AM

Hi Enrico, Massimo

Thanks for your kind thoughts. Mum is now home and so far coping quite well. Will post code tomorrow time permitting. It probably needs some explanation with it. Like so many projects it grew out of a simple "proof of concept" but as the project has dvelkoped the simple beginning is probably hard to see.

Regards
Doug

Posts: 1789
Joined: Tue Oct 11, 2005 05:01 PM
Re: ADS or similar products
Posted: Thu Mar 03, 2011 03:46 PM

I think Apollo should be a good option as it currently sells for $ 149.00, one-stop shopping for multiple implementations. ADS is much more expensive and only for a specific client.
currently only has an RDD xHarbour developed, but I think only for the local version and not client / server, harbour began to develop the RDD but does not go far

sorry traslate with google

salu2
carlos vargas

Salu2

Carlos Vargas

Desde Managua, Nicaragua (CA)
Posts: 366
Joined: Wed Aug 30, 2006 05:25 PM
Re: ADS or similar products
Posted: Thu Mar 03, 2011 04:49 PM

Marco:
I don't know if it's the right choice, but it's cheaper than other and I think it's esasy.
There's no code and. I dont't know If FWH could go well together.
Very Sorry for my bad English.

Best regards
Ruben Fernandez

Gracias y Saludos

Ruben Fernandez - Uruguay

FWH 11.06, Harbour, Borland 5.82