• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

B&S: I don't know what it means

 
Ranch Hand
Posts: 166
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I get B&S assignment. In the assignment, a sentance is

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 explain it as the follows.
1. when mode flag is "server", start only database server.
2. when mode flag is "alone", start gui client and local connection
3. when mode flag is "", start gui client and network connection.

Am I right?
Please let me know what it means.
Thank you for replying my thread.

<phil>Edited to solve an alignment issue on the whole thread (replaced the CODE block by a QUOTE one)</phil>
[ August 21, 2004: Message edited by: Philippe Maquet ]
 
Ranch Hand
Posts: 532
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Steve,

I explain it as the follows.
1. when mode flag is "server", start only database server.
2. when mode flag is "alone", start gui client and local connection
3. when mode flag is "", start gui client and network connection.


You might be right, you are using two terms, server and network connection, and I don't know what do you mean by them.
My requirement was identical to yours, so let me tell you what I did.
I had two major compnent, the server and server gui, and the client and client gui. Basically, they are the server and the client. The gui is nothing but a graphical representaion of the software.
1. When the mode flag is "server", only the server will run.
2. When the mode flag is "client", only client will run.
3. When the mode flag is "", the client and the server will run.
 
Ranch Hand
Posts: 197
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Let me explain it another way.

You have one archive of classes.

This constitutes THE application.

The application can run in one of 3 modes.

Server mode 'server' executes the server code that makes a remote object, that constitutes the database, available at a specified port. So here server and database code run.

Client mode '' executes the GUI client that connects to the remote object made available by the server mode.

Local mode 'alone' executes the GUI client that connects to the database code directly.

There is likely very little difference between local and client mode, just in the way it gets an object that represents the database.

However in local mode the code in the server package will NOT be used at all, this is very important.

YMMV if you use plain serialised objects over Socket layer.
 
You guys wanna see my fabulous new place? Or do you wanna look at this tiny ad?
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic