Commit Graph
398 Commits
Author SHA1 Message Date
lotodore 55a29f9a38 Do not use asio cancel, because it is not portable. It will cause an exception on Windows XP. Just let the socket be closed. 2009-03-21 10:44:31 +00:00
lotodore ebac9c9574 Fixed nasty cleanup crash on Windows. 2009-03-21 10:28:27 +00:00
lotodore 5be8403d07 Explicitly include fstream. Still broken stuff. 2009-03-21 09:11:39 +00:00
lotodore ebce3ee214 Warning: Enables debug mode.
More steps towards downloading avatars from external server. This is currently BROKEN.
2009-03-21 01:39:00 +00:00
lotodore b1bad8d144 Preparing client use of external avatar servers. 2009-03-18 15:01:43 +00:00
lotodore 6948d86d9f Forgot some changes for avatar upload. 2009-03-01 23:38:29 +00:00
lotodore 16decacb6b New configuration options for automatically uploading the avatars to an external server. 2009-03-01 23:09:14 +00:00
lotodore e5ecc5d133 Trying to fix server termination issue. 2009-02-27 22:09:03 +00:00
doitux cc197bbc00 libcurl avatar upload works now ;-) 2009-02-26 21:39:04 +00:00
doitux ea2312bab6 linux fixes 2009-02-22 21:42:26 +00:00
lotodore e7c70ad9ad First version of server side avatar upload feature (support for external avatar server). Still hard coded, cannot be configured. 2009-02-21 23:33:30 +00:00
lotodore ac7d448d09 Fixed sending error messages before closing session. 2009-02-05 19:29:44 +00:00
lotodore 8f59de0c62 Proper destruction of sockets (crashed previously). 2009-02-01 17:21:02 +00:00
lotodore c998edf219 Fixed cleanup issue - the previous version had kind of a resource leak. 2009-01-31 22:20:08 +00:00
lotodore 3f8d3c8d55 Reworked asio sender thread implementation. Optimized it for speed. Some cleanup still needed, but should work. 2009-01-31 21:03:34 +00:00
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