The International Simutrans Forum

Development => Patches & Projects => Incorporated Patches and Solved Bug Reports => Topic started by: Dwachs on August 13, 2010, 10:28:43 am

Title: [patch] separate clients logic from low-level stuff
Post by: Dwachs on August 13, 2010, 10:28:43 am
This is code change to separate the client information and logic from the low-level stuff. The principal idea is that network.cc only has the low level communication stuff, whereas the new network_client.cc contains all the client related functions. The motivation was to enable to store more information about the clients (ip, name etc) that would not be possible before (and is not implemented yet, but implementation should be much easier).
Title: Re: [patch] separate clients logic from low-level stuff
Post by: prissi on September 04, 2010, 07:23:00 pm
In principle a good idea, although my intermediate work made this as little useless, I fear. (Would have my work easier ... )
Title: Re: [patch] separate clients logic from low-level stuff
Post by: Dwachs on September 05, 2010, 12:29:56 pm
Here is an updated patch (untested now after the conflicts...)

Should I update the patch? the intention was to be able to distinct between active clients (ie playing) and other clients that only connected to get server info.
Title: Re: [patch] separate clients logic from low-level stuff
Post by: prissi on September 05, 2010, 07:02:29 pm
In current implementation, those are deleted immeadiately afterwards. But a separation might be in useful and logic.
Title: Re: [patch] separate clients logic from low-level stuff
Post by: Dwachs on October 23, 2010, 12:30:20 pm
Incorporated in different form in 3900.