• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Paul Clapham
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Roland Mueller
  • Piet Souris
Bartenders:

Mode flag

 
Ranch Hand
Posts: 68
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
Bartender
Posts: 1872
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
Ranch Hand
Posts: 531
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thank you for the help!
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic