• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Mode flag

 
Wickes Potgieter
Ranch Hand
Posts: 68
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
My instructions:

The mode flag MUST be either "server", indicating the server program MUST run, "alone", indicating standalone mode, or left out entirely, in which case the network client and gui MUST run.


I am not sure what they mean by this statement?
 
Philippe Maquet
Bartender
Posts: 1872
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Wickes,
The mode flag MUST be either "server", indicating the server program MUST run, "alone", indicating standalone mode, or left out entirely, in which case the network client and gui MUST run.

I am not sure what they mean by this statement?

I think that this recent thread replies to your question.

Regards,

Phil.
 
Wickes Potgieter
Ranch Hand
Posts: 68
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

default mode(no flag): Client runs expecting to connect via network.

"server" flag: Server runs expecting connections via network only.

"standalone" flag: Client and server both run in non-networked mode.


When my client starts I display a Dialog box so that the user can choose between a local or a remote database graphically. So, I don't see the need for the "standalone" flag. Should I put it in anyway?
 
Philippe Maquet
Bartender
Posts: 1872
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Wickes,
When my client starts I display a Dialog box so that the user can choose between a local or a remote database graphically. So, I don't see the need for the "standalone" flag. Should I put it in anyway?

I wouldn't do that: supporting the application mode through a command-line argument is a must-be instruction, which makes your GUI support of the same feature useless. Just IMO.

Regards,

Phil.
 
Wickes Potgieter
Ranch Hand
Posts: 68
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ok, I see your point. So, I should rather support the mode flag and then pop up a dialog on startup to get the file location or the server location?
 
Anton Golovin
Ranch Hand
Posts: 527
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Wickes Potgieter:
ok, I see your point. So, I should rather support the mode flag and then pop up a dialog on startup to get the file location or the server location?


Yes. The program must start in the right mode from the command-line flag; but the configuration specifics for each mode is up to you.
 
Wickes Potgieter
Ranch Hand
Posts: 68
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you for the help!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic