• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

networking modes

 
Lucy Sommerman
Ranch Hand
Posts: 61
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
RE B&S
"The program must allow the user to specify the location of the database, and it must also accept an indication that a local database is to be used, in which case, the networking must be bypassed entirely."

I have three modes, server, client, alone...have assumed that only alone uses a local database...or can client mode use a local db as well? If so, kind of defeats purpose of having client/server, no?

Thanks

L
 
Jeroen T Wenting
Ranch Hand
Posts: 1847
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
no, network client doesn't use a local database.
But you will need to be able to input the location of the network server to use.
 
Lucy Sommerman
Ranch Hand
Posts: 61
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
by location do you mean port number? or something else?

Thanks

L
 
Jared Cope
Ranch Hand
Posts: 243
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Originally posted by Jeroen T Wenting:
no, network client doesn't use a local database.
But you will need to be able to input the location of the network server to use.


I actually disagree with this interpretation. My specs are similar to that above.

And so even when run in network client mode, I give the user an option to actually use a local database file instead of connecting to a remote server. In the case of choosing a local DB file (and for all intents and purposes), the whole application drops back into stand-alone mode despite having been started in network client mode.

I guess you need to explain your interpretation in your choices.txt file and go with it.

Cheers, Jared.
 
Lucy Sommerman
Ranch Hand
Posts: 61
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ok thanks, L
 
Jeroen T Wenting
Ranch Hand
Posts: 1847
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That's what I do too Jared, but that just means that you can switch between application modes without restarting the application.
I interpreted the OP as asking whether he should have a network connection and a local connection at the same time.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic