Commit Graph
383 Commits
Author SHA1 Message Date
lotodore e0ff6db98e Create I/O service object in sender thread. 2009-01-26 20:57:39 +00:00
lotodore 7d1021cde7 Optimising sender thread. 2009-01-26 19:05:24 +00:00
lotodore f2c3b2b723 Fixed boost asio stuff. Now working but probably some polishing required. 2009-01-25 21:56:43 +00:00
lotodore 3c820445c6 Fixed missing completion call issue. However, boost::asio now automatically closes the socket. This cannot be disabled. So the next step is to use the boost::asio socket class for the session and everywhere else. 2009-01-25 21:12:33 +00:00
lotodore 17377f5a6b New boost::asio based sender thread. Does not work on windows yet, because the completion routine is never called. No idea why not. 2009-01-25 20:19:09 +00:00
lotodore 1e42a9e211 Fixed client termination. 2009-01-11 21:54:09 +00:00
lotodore b2ccee2267 Fixed initialization order. 2009-01-11 21:10:12 +00:00
lotodore 29061b661c Fixed one thread per session implementation. Kind of. Still seems to have a handle leak on Windows. However, it does not scale at all and needs to be reverted. It won't even handle 500 players with 500 games on a dual core high end machine. 2009-01-11 20:12:26 +00:00
lotodore d72cdb6873 One sender thread per client. Requires loads of resources. Kind of hacked, because the internal dependencies are very ugly now. Requires loads of testing. A problem might be the last packet sent by the server to a specific client before closing the connection, for example an error message. It might never even reach the client, because the sender thread is terminated before. I have not yet found a good way to fix this. 2009-01-07 21:52:16 +00:00
lotodore 606158c4f0 Preparing new send engine. 2009-01-07 19:37:05 +00:00
lotodore 4515996959 Yet another (important) network game fix. Last fix was not sufficient. 2009-01-03 20:40:14 +00:00
lotodore 618ed80e2d Fixed network game bug which was introduced in the bugfix release by changing the id of the first game to 1. 2009-01-03 11:36:03 +00:00
lotodore 8de66094f3 Restrict message sizes. 2008-12-26 16:55:46 +00:00
lotodore 23c3ae3849 Enable sending of a global message box through the irc bot, to inform clients about server reboots. 2008-12-26 16:47:14 +00:00
lotodore 4f48fdbe2a Allow the server to send a global notice to all players (for example if a server reboot is going to happen). Does not work with current client version 0.6.3. 2008-12-26 13:50:09 +00:00
lotodore 77bb02113a Let the server automatically perform call/all in without the client having to provide values. 2008-12-25 21:11:05 +00:00
lotodore 1548598944 Fix access violation when someone votes after the vote timeout. 2008-12-23 18:17:14 +00:00
lotodore 6fa4f6585b Disabled kicking computer players, which causes the current crashes of the server. 2008-12-23 01:34:32 +00:00
lotodore 10624d5399 Clarification: The password protection flag is not a general game flag. General flags should be in the game info block. 2008-12-19 12:10:50 +00:00
lotodore 4bf9ceff6d Deny ask kick if the player is not/no longer present. 2008-12-12 22:38:35 +00:00
lotodore 4905f618ad Allow kicking of computer players. 2008-12-08 23:06:11 +00:00
lotodore c90b46e5f6 Count only number of human players for number of votes to kick. 2008-12-08 22:17:14 +00:00
doitux 15d934e5b8 show votekick starter nick, disable kick contextmenu for only 2 players 2008-12-07 21:47:53 +00:00
lotodore 80883dd409 Update number of votes on client. 2008-12-07 12:22:35 +00:00
lotodore bd55b69817 Client side vote kick changes - tab closes now. Server side fixes. 2008-12-07 11:48:01 +00:00
lotodore 89450a9a32 More work on server side vote kick. Most error handling complete now. Client side still lacking. 2008-12-07 11:04:42 +00:00
lotodore e0c1662fa5 Work on timeout of kick votes. 2008-12-06 21:10:46 +00:00
lotodore 2652625828 Started error handling for vote kick. 2008-12-06 00:18:36 +00:00
lotodore e3e3846a15 Fixed byte order issue with player leave reason. Works now. 2008-11-25 23:28:44 +00:00
lotodore c57ea0985b Trying to send reason why the player leaves the game. 2008-11-25 23:19:34 +00:00
lotodore b236fa9d62 Vote kick kind of working. Only the forward case - no timeout, no error handling, no display update. 2008-11-25 22:18:17 +00:00
lotodore 78d039bac1 Next steps for voting to kick a user. 2008-11-19 23:15:38 +00:00
lotodore 1cfe551f19 More work on vote kick. Some network packets are exchanged, but still not functional. 2008-11-16 22:57:11 +00:00
lotodore 4ba76e60dd Disallow kicking from within a game. 2008-11-10 23:06:24 +00:00
lotodore 9943e34d4a Let the server irc bot reconnect once every day. 2008-11-02 21:25:42 +00:00
lotodore 716e45c881 More work on vote kick network protocol. 2008-10-16 22:19:10 +00:00
lotodore 13cc3d5aeb Fixed linker error. 2008-10-07 20:19:41 +00:00
lotodore 4c78706d14 Fist steps to implement vote kick in network protocol. 2008-10-02 22:15:46 +00:00
lotodore d4350fa806 Fixed leaving a game which has not yet been started. 2008-05-16 20:42:46 +00:00
lotodore d6979236a6 Trying to fix broken MacOS build. 2008-05-16 18:47:44 +00:00
lotodore 269eab4774 Fixed lobby update after leaving a game. 2008-05-16 16:46:45 +00:00
lotodore d1e0e5e30d The subscribe/unsubscribe lobby messages system has been integrated in the client. 2008-05-12 10:50:19 +00:00
lotodore 0ef69297d1 Server support for unsubscribing/resubscribing of lobby messages. Not yet used by the client. 2008-05-11 21:41:30 +00:00
lotodore 27ccb79edc Added paranoia check before deleting file from the cache directory. 2008-05-10 18:43:17 +00:00
lotodore 17d68255b6 Added loads of error handling to the new server list download code. Added several new error messages. 2008-05-10 18:07:46 +00:00
lotodore b5c2399603 Use configuration setting to decide whether to download the server list or directly connect to the server. Accept other server lists. Accept un'zlib'ed server lists. Use IPv6 address from server list if configured. 2008-05-10 15:47:48 +00:00
lotodore 4b04aedc3f Download only md5 of the server list if the list is still in the cache. 2008-04-29 22:46:27 +00:00
lotodore 8eb96aca77 Use the quick random number generator. 2008-04-25 09:55:46 +00:00
lotodore c31a43e64d 2008-04-25 09:32:50 +00:00
lotodore 2e9e7e3aed Fix for boost 1.34.1. 2008-04-25 09:28:03 +00:00