Complete.Org: Mailing Lists: Archives: freeciv-dev: January 2002:
[Freeciv-Dev] Re: server console cleanup patch v2
Home

[Freeciv-Dev] Re: server console cleanup patch v2

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: <freeciv-dev@xxxxxxxxxxx>
Subject: [Freeciv-Dev] Re: server console cleanup patch v2
From: "Per I. Mathisen" <Per.Inge.Mathisen@xxxxxxxxxxx>
Date: Sat, 5 Jan 2002 18:56:11 +0100 (MET)

On Sat, 5 Jan 2002, Raimar Falke wrote:
> Good question. Well. What do you want to achieve?

Two objectives:
 1 -> Simplify console code, remove unused code
 2 -> Make it easier to parse server output

>                text
>    controller <-----> server command line         binary
>                       server core            <-------------> client
>
> If client and controller are the same program and the client is
> connected the commands and replays can be done on the normal binary
> protocol. However you would need to use the text interface if the
> controller is standalone (maybe however in this case it can just
> create a "dummy" binary/client connection) or the client isn't
> connected yet to the server (can be solved by connecting the client).

I think we can safely introduce the limitation that the controller will
always be a client with another, binary (as you call it) connection to the
server. So, yes, we can code it so that the controller can use the binary
connection to control the server (as Reinier suggested). This is IMHO also
the most "proper" way of doing it, and should probably replace the server
command line totally (making it a server daemon).

However, parsing rfcstyle is a lot simpler.

I want to know what way we should go. If we are not going to use rfcstyle
for server control, I can remove rfcstyle and simplify the console and
server reply code a lot.

Yours,
Per

Action expresses priorities.
 -- Mohandas Gandhi



[Prev in Thread] Current Thread [Next in Thread]