Commit Graph
267 Commits
Author SHA1 Message Date
lotodore a3c9390bfe Redesign of avatar stuff. First part. 2007-11-01 00:12:47 +00:00
lotodore 3a0fc4a71e Also disable avatar retrieval on server. Fixed nasty send "wrong return value" (Linux only). 2007-10-31 22:33:52 +00:00
lotodore ec5196c417 Disable avatars on server side until the bug is fixed. 2007-10-31 21:24:02 +00:00
lotodore e5f05c5359 Trying to fix the avatar problem. 2007-10-31 20:23:27 +00:00
lotodore 184eb4a577 Fixed avatar problem where clients were kicked. 2007-10-31 19:21:54 +00:00
lotodore b0524a59ff Fixed two race conditions. 2007-10-30 21:25:10 +00:00
lotodore fee8450a74 Still trying to fix the SIGPIPE problem. 2007-10-30 21:02:52 +00:00
lotodore 7fc3ae4adf Fixed compiler warnings. 2007-10-30 17:31:14 +00:00
lotodore 3ab6211009 Fixed compiler warnings. 2007-10-30 17:26:38 +00:00
lotodore cba5ee389e Fixed compiler warnings. 2007-10-30 17:21:11 +00:00
lotodore 7000722d75 Suppress sigpipe in sender thread. 2007-10-30 16:59:47 +00:00
lotodore 9cf398d3e0 Fixed winner list issue on client. 2007-10-30 16:57:48 +00:00
lotodore b89ce1d67f Trying to fix SIGPIPE issue on server (linux). 2007-10-30 13:03:17 +00:00
lotodore 26157027dc Fixed macro redefinition. Set money won in server. 2007-10-29 22:37:42 +00:00
lotodore 70e2d5556f If a sender thread is stalled while trying to send, time out after 2 seconds. Use infinite timeout when terminating threads. 2007-10-29 22:16:21 +00:00
lotodore ded7ca7daf Added winner list for network client. 2007-10-29 19:57:46 +00:00
lotodore 3953210ad9 Use larger thread termination timeouts. 2007-10-29 18:49:28 +00:00
lotodore 001ac0272b Additional log messages. 2007-10-29 12:57:29 +00:00
lotodore 219a922c9e Fixed crash in the server which was caused by not waiting long enough for the termination of threads. 2007-10-29 11:57:17 +00:00
lotodore 0a42827290 fixed compiler error 2007-10-29 09:37:14 +00:00
lotodore bc11d42aba Added missing log for exception. 2007-10-29 09:30:34 +00:00
lotodore e36d878a07 Added code to run fast test games. 2007-10-29 09:18:34 +00:00
lotodore 3ea61381ef Use client game id when kicking players during game. 2007-10-28 19:38:49 +00:00
lotodore f821f9c0a4 No longer delay closing of sessions (not needed any more). 2007-10-28 15:21:24 +00:00
lotodore cdea81b2ba Fixed sender again, as it did not work when sending errors. 2007-10-28 15:06:57 +00:00
lotodore 92f03db7a2 Always delay before closing a session. Last part of the fix. 2007-10-28 13:04:05 +00:00
lotodore fa7af40a49 Fixed a very nasty bug concerning the sender thread. SOCKETs were assumed to be kind of unique, but Windows tends to return the socket number of a socket which was just closed as new socket number in accept. This led to very strange behavior when the server was flooded with inits, because the sender thread still had entries for this socket number (which were not removed because they should just fail).
No longer use socket as key in maps, instead, use the session id. Only use the session id in the sender thread, "resolve" it to the socket only in the moment when it is needed. Outstanding requests will be detected to have an invalid session id then.
Also, as side effect, fixed an issue with two callback classes which were named the same and caused unexpected behavior.
2007-10-28 12:53:54 +00:00
lotodore bb64e07657 Show lobby for players if they are kicked during a game. 2007-10-27 20:29:46 +00:00
lotodore e27be88942 Fixed bug when kicking during game. 2007-10-27 19:53:04 +00:00
lotodore 6b19b3291a Missing if to check for kick in server during game. 2007-10-27 19:48:31 +00:00
lotodore 8f1e5132d6 Added kick function with player name. 2007-10-27 18:51:53 +00:00
lotodore ae33299758 If a client does not initialize properly within a certain time, remove the network session. 2007-10-26 14:54:57 +00:00
lotodore e0f1193963 Clarified initialization order to prevent possible race condition when initializing a new game. 2007-10-25 21:59:06 +00:00
lotodore d0c34c572b Automatically cleanup cache once a day on the dedicated server. 2007-10-25 21:20:35 +00:00
lotodore d0cea553df Fixed boost string comparison. Oo. 2007-10-25 20:35:57 +00:00
lotodore f019523879 Use boost for case insensitive comparison. 2007-10-25 20:26:44 +00:00
lotodore f3556bff57 Case-insensitive channel names for IRC. Fixed leaving admin players. 2007-10-25 19:50:43 +00:00
lotodore 9e180d01f3 Fixed error when transfering avatars. Additional logging. 2007-10-24 23:17:12 +00:00
lotodore b4848532f9 Added logging for server using syslog. 2007-10-23 21:26:07 +00:00
lotodore ae030a3669 Fixed Lobby Thread termination issue if an exception is thrown. 2007-10-23 20:01:56 +00:00
lotodore 07a0b8503d Fixed lobby update issue when computer players joined a game. 2007-10-21 18:36:56 +00:00
lotodore daa55efab7 Fixed exception issue when player statistics counter reached 0. 2007-10-21 00:17:04 +00:00
lotodore d5453e5416 Fixed decreasing number of players when players leave. 2007-10-20 23:24:40 +00:00
lotodore 4bc57f07d0 Add server statistics which are sent by the server to every client each time they change. 2007-10-20 22:22:11 +00:00
doitux f89a1c8c23 hide previous action for current player in network-game (like in local-game) 2007-10-20 20:10:48 +00:00
doitux 7da3ad5481 starts human player input filed redesign - PART VII (firtst steps for network game) 2007-10-19 20:43:53 +00:00
floty 7c2e8dc777 cleaning code and hopefully last part of refactoring playerArray to playerLists ;) 2007-10-19 14:03:12 +00:00
lotodore 6a297effc1 Try to prevent (as much as possible) transfering and, more important, storing, any other files than avatars as png, gif and jpg. The headers of the files are checked whether they are valid for the corresponding format. Files without gif/png/jpg header are never stored on the server, and thus cannot be requested by any client. 2007-10-18 23:00:55 +00:00
lotodore 3e373be458 Fixed gcc compiler error. 2007-10-18 21:16:49 +00:00
lotodore d91c972d3c Fixed gcc compiler error. 2007-10-18 21:13:06 +00:00