summaryrefslogtreecommitdiff
path: root/src/network/network_server.cpp
AgeCommit message (Collapse)Author
2009-01-08(svn r14915) -Codechange: unify the receiving and sending of commands, and ↵rubidium
thus unifying most of the validity checking too.
2009-01-08(svn r14910) -Codechange: merge the command queue handling into a single ↵rubidium
location
2009-01-07(svn r14897) -Codechange: don't allow a few command flags to be sent over ↵rubidium
the network as it's bogus information anyway; e.g. the "do not send over network" flag as it will be set whenever the command is received from the server/client. -Codechange: test earlier whether the command (send from the server) is actually valid.
2009-01-04(svn r14828) -Codechange: move most of save/load-specific code to separate filessmatz
2008-12-29(svn r14764) -Codechange: make the '***' chat messages like "Game paused ↵rubidium
(not enough players)" fully translateable.
2008-12-28(svn r14754) -Codechange: get rid of _cmd_text and just pass it as ↵rubidium
(optional) parameter.
2008-12-24(svn r14733) -Fix (r14730): creating new companies didn't always work as ↵rubidium
expected.
2008-12-23(svn r14730) -Codechange: remove the need for networkclientsockets and ↵rubidium
networkclientinfo structs to be in a contiguous piece of memory and put them in a pool. -Note: 255 should really be enough for now... making it any more means network protocol bumps.
2008-12-23(svn r14727) -Codechange: replace some magic numbers with a constant.rubidium
2008-12-23(svn r14721) -Codechange: s/NetworkTCPSocketHandler/NetworkClientSocket/ as ↵rubidium
it's (way) more descriptive what it's used for.
2008-12-23(svn r14720) -Codechange: s/FOR_ALL_CLIENTS/FOR_ALL_CLIENT_SOCKETS/ as the ↵rubidium
latter describes the name more precisely.
2008-12-23(svn r14719) -Codechange: replace DEREF_CLIENT with an instance function and ↵rubidium
replace looping socket structs with info structs when the loop is only interested in the info structs (i.e. not derefing the info from sockets when one can loop info directly and the socket isn't used)
2008-12-22(svn r14717) -Change: more 'Index' -> ClientID to not confuse ClientID and ↵rubidium
ClientIndex
2008-12-22(svn r14712) -Codechange: split server and client side w.r.t. the storage of ↵rubidium
network related company information.
2008-12-22(svn r14710) -Change: simplify sending company information from the server ↵rubidium
to the client.
2008-12-22(svn r14709) -Codechange: make a clearer distinction between 'unique' client ↵rubidium
identification ids and the indices into the clients/client info arrays.
2008-11-04(svn r14564) -Fix (r14555): one more incorrect use of lastof()smatz
2008-11-03(svn r14560) -Fix [FS#2396](r14555): lengthof() can't be simply replaced by ↵smatz
lastof() in some cases (part by Aali)
2008-11-02(svn r14555) -Codechange: replace ttd_strlcat and ttd_strlcpy with strecat ↵skidd13
and strecpy where direct conversion is possible
2008-09-30(svn r14422) -Codechange: also reflect the changes of r14421 in the filenames.rubidium
2008-09-30(svn r14421) -Codechange: rename all player variables/types to company *or* ↵rubidium
client so it is immediatelly clear which one you are working with.
2008-08-31(svn r14199) -Codechange: split fileio.h into fileio_type.h and ↵rubidium
fileio_func.h so not everything that includes saveload.h needs to include everything else too.
2008-08-11(svn r14045) -Codechange: move the network's limitation to chat messages to ↵rubidium
a more logical location and give it a more consistent name.
2008-07-21(svn r13776) -Fix: some revision checking code was unintentionally disabled.rubidium
2008-07-21(svn r13775) -Codechange: enforce the validity of a NetworkAction (chat ↵glx
packet) issued by a client
2008-07-21(svn r13773) -Codechange: disable autoclean for protected/unprotected ↵rubidium
companies when the timeout is set to 0. Based on an idea by Thomas.
2008-07-19(svn r13739) -Fix (r13731): some variables would be erroneously zeroed, ↵rubidium
causing autoclean and company passwords not to work.
2008-07-18(svn r13731) -Codechange: make a pool of the array of players.rubidium
2008-07-17(svn r13719) -Codechange: rename IsValidPlayer to IsValidPlayerID in line ↵rubidium
with all other structs/classes that are in a pool.
2008-07-17(svn r13716) -Fix [FS#2144]: any player could construct new companies.rubidium
2008-07-17(svn r13714) -Fix: remove the unique_id from the message that a client has ↵rubidium
joined as it is only exposes the unique_id more than needed. Patch by dih.
2008-06-08(svn r13408) -Codechange: some stricter checking.rubidium
2008-06-05(svn r13390) -Codechange: introduce usererror() for fatal but not openttd ↵glx
related errors. Now all error() will 'crash' openttd after showing the message in win32 releases (MSVC), creating a crash.log and crash.dmp (like the '!' hack used before). On the other hand, usererror() will just close the game. So use error() only when it can be helpful to debugging, else use usererror().
2008-06-03(svn r13369) -Codechange: remove duplication of network configuration ↵rubidium
settings between NetworkSettings and NetworkGameInfo. -Fix: failure of changing the server password during games because the password wasn't duplicated properly.
2008-05-30(svn r13343) -Codechange: reorder/move variable/functions in the network ↵rubidium
headers so that nothing from the network directory needs to include basically all network headers.
2008-05-29(svn r13334) -Codechange: move the network settings variables from ↵rubidium
network/network_internal to settings.
2008-05-29(svn r13325) -Codechange: split the client-side only settings from the ↵rubidium
settings stored in the savegame so there is no need to have a duplicate copy of it for new games.
2008-05-25(svn r13251) -Codechange: rename _patches to _settings as that is more logic.rubidium
-Codechange: move all Settings into substructs of _settings in a way that they are logically grouped.
2008-05-24(svn r13229) -Codechange: replace some global variables that are only ↵rubidium
initialised once and always with the same value with enums.
2008-05-24(svn r13228) -Codechange: split console.h.rubidium
2008-05-06(svn r12971) -Documentation: add @file in files that missed them and add ↵rubidium
something more than whitespace as description of files that don't have a description.
2008-03-31(svn r12489) -Codechange: split station.h into station_base.h and ↵rubidium
station_func.h.
2008-01-18(svn r11920) -Fix (r11844): train count was incorrect in network lobby ↵glx
window (and 'players' command)
2008-01-13(svn r11844) -Fix: road vehicle count was incorrect in network lobby windowglx
2008-01-13(svn r11834) -Codechange: only include settings_type.h if needed.rubidium
2008-01-13(svn r11828) -Codechange: include table/* as the last includes and remove an ↵rubidium
unneeded include from openttd.h.
2008-01-12(svn r11818) -Codechange: split player.h into smaller pieces.rubidium
2008-01-07(svn r11777) -Codechange: split the string header and make do not include it ↵rubidium
when it's not necessary.
2007-12-27(svn r11706) -Codechange: split vehicle.h and remove another bunch of ↵rubidium
useless includes.
2007-12-26(svn r11702) -Codechange: move all date related stuff to date*.rubidium