Originally posted by Yanick Labelle:
Hi, from what I understood from the spec, there are 3 modes:
Yep.
alone:
The client with gui starts and manages a local data file.
The path to the datafile must be configurable from the user interface.
Yeah. Basically you need to ask for the db file location in alone mode. You may want to check if its valid data file or not like checking the magic cookie or of that sort.
<no arguments>:
The client with gui starts and connects to a network server.
The IP/Machine Name and port must be configurable from the user interface.
In this mode, you may want to know the host name & port number where the server is listening.
server:
The network server starts. My question was: how do you tell the server on which port to listen, and which data file to open, to report errors... fatal errors...
In this mode you need to ask for the db file location and also the port where the server has to start listening.
My supposition was that since everything must be configurable from the user interface, the network server must have a gui. Maybe with a preferences dialog asking for the port and data file to open. And maybe also pretty buttons which permit the administrator to start/pause the server.
Well, exactly right. But I don't think we need to have a pause button that can pause the server. If you can do that, its great. Maybe you want to add one more button to stop the server. This looks good on the GUI besides start server button![]()
Also, we could add a dynamic log in the window to tell what is currently happening on the server... (But I ask myself "why is it that I never heard about those things on this forum? It may be that no one cared to do those things... am I reflecting too much???").
Yanick, there threads on the mode flag. But what exactly happens is most of the times, the thread starts out with one problem discussing and ends up discussing a completely different problem. So basically at/most times the post name necessarily does'nt reflect what's in it.
Also, if anyone sees something unlogical with my description of the 3 (standalone client, network client, server) modes, let me know!
I think you got the complete idea about the modes. If you still want to check out, you can have a look at the following thread.Mode Flag Confusion
Also in that thread, if you also can look at the link given by Terry, everything should be very clear.
Good Luck.
SCJP, SCJD, SCWCD.
Bring me the box labeled "thinking cap" ... and then read this tiny ad:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
|