[Freeciv-Dev] Re: connect dialog update
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
On Mon, Nov 11, 2002 at 12:58:31PM -0500, Daniel L Speyer wrote:
> > Pipe just calls for problems on windows. Create a file with the
> > cookie, chmod it that no other can read it and give the server the
> > filename.
> >
>
> <cheap shot>Windows doesn't have chmod either.</cheap>
>
> More seriously, though, this patch allows for that. Just prepend
> "setpassword " to the cookie file and pass it in with -r. This is
> probably gui-specific code anyway, so doing files on windows and pipes
> everywhere else is fine.
>
> Making the server (which is almost purely cross-platform) fully general is
> the most elegant and future-proof way of doing this. It can take the
> password by file, pipe or network. It will run on Linux, Windows, Eros,
> Linux-on-CD, or some futuristic "network is computer" sort of system.
If the client starts the server from a filesystem and the server needs
a place in the filesystem where is can store savegames (so at least
one dir is writeable for the server) a file is all we need. Pipe and
network are just superfluous.
Raimar
--
email: rf13@xxxxxxxxxxxxxxxxx
"Are you saying that you actually used the Classpath Java AWT classes in
addition to the GTK peers and got them to display something?
Wow. That's way better than I did and I wrote the code!"
-- Aaron M. Renn in the classpath mailing list
|
|