Commit Graph
91 Commits
Author SHA1 Message Date
lotodore ddaf311c12 New log object for network/internet games. Preliminary code. 2011-01-03 18:41:28 +00:00
lotodore 710affb1e5 Preparing the use of the report bad avatar function. 2010-12-24 12:27:46 +00:00
lotodore 0cb1d75ce3 Adding code for private chat messages (server side). These messages are not allowed within a game. Adding config option to disable brute force protection. 2010-11-07 08:24:31 +00:00
lotodore 79e7a47343 Preparing network functions to let a player show his cards. 2010-07-15 21:55:52 +00:00
lotodore c0947c9d54 Adding function to find out in which game a user is playing. 2010-07-15 10:34:24 +00:00
lotodore 866e9b9e48 Making the network part compile. 2010-03-29 12:33:12 +00:00
lotodore 5ea56bbf0d Allow retrieving of own player id by gui. 2010-03-24 20:10:36 +00:00
lotodore d727a7fd5d Network game, dedicated server without auth backend and dedicated server with auth backend should work now. Guest login still broken. 2009-11-14 15:04:31 +00:00
lotodore 059da0232a Preparing to fix login for network game and dedicated server without login backend. Currently broken. 2009-11-14 12:39:25 +00:00
lotodore 629cd71735 Integrating gsasl on client side. Untested. 2009-10-22 22:55:19 +00:00
lotodore b61d43859e Trying to make gsasl authentication work... 2009-10-13 21:03:32 +00:00
lotodore 39285263b7 Starting login dialog integration on client side. 2009-09-24 20:10:40 +00:00
lotodore 4c340d5bdc Use own lobby chat instead of IRC. First steps, still incomplete. 2009-08-15 10:25:13 +00:00
lotodore 945c4a102a Completely rewriting all NetPacket stuff to use ASN.1. Finally this big chunk of work is completed. Compiles and links fine, but still partly non-functional.
PLEASE NOTE: This is NOT COMPATIBLE to 0.7.x, because it is a new network protocol.
2009-08-02 15:11:40 +00:00
lotodore a2e692d844 Fixing delayed sending of create/join game for network games. 2009-06-20 18:41:03 +00:00
lotodore eefbd9e79f Some minor polishing. 2009-06-17 21:22:01 +00:00
lotodore 35d0988f78 Removing a buffered delay when the client sends data (no longer necessary with asio). 2009-06-16 22:36:07 +00:00
lotodore 4b5d78af81 The client network code was rewritten to use boost::asio. Some optimization is still required, and some code files can now be removed. 2009-06-14 22:07:41 +00:00
lotodore 5f3369432a Rewriting sender yet again to fit the new asio design. Polling for new send data is no longer needed, this also reduces lag. 2009-06-07 08:51:43 +00:00
lotodore 8ab2fed1a2 More restructuring. Still broken. 2009-05-10 22:21:20 +00:00
lotodore ac4c2e9aef Integrating precompiled headers support (might speed up compilation). Currently disabled (in .pro files). 2009-05-07 22:36:51 +00:00
lotodore 60b5d45c53 Adopting changes from asio branch. Currently broken. 2009-05-04 21:11:29 +00:00
lotodore acd5267412 Compiler error fixes. 2009-04-05 12:37:14 +00:00
lotodore 534b6066a8 More work on server selection. Currently untested. 2009-04-05 12:31:12 +00:00
lotodore 009249e41a Adding stuff for server list (choosing a server). Might not compile (untested yet). 2009-04-05 11:19:50 +00:00
lotodore c3dc770c2e More work to let clients download avatars from an external server. 2009-03-21 11:36:10 +00:00
lotodore ebac9c9574 Fixed nasty cleanup crash on Windows. 2009-03-21 10:28:27 +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 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 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 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 1cfe551f19 More work on vote kick. Some network packets are exchanged, but still not functional. 2008-11-16 22:57:11 +00:00
lotodore 269eab4774 Fixed lobby update after leaving a game. 2008-05-16 16:46:45 +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 7a157b682a The client now downloads a zipped server list file from pokerth.net. This is parsed and the first server entry is used for now. Error handling still missing. boost::iostreams now required. 2008-04-19 11:48:09 +00:00
lotodore 9f0d204f56 First test version with network timeout. Only activity timeout and global timeout, no game admin timeout yet. Set to test values (will disconnect rapidly).
Modified method for init timeout (if session cannot be established) - now using one non-modifiable timer for each session, and an additional timer which is reset whenever session data is received.
2008-03-04 23:47:45 +00:00
lotodore ee00741931 More avatar related utf8 fixes. 2007-12-12 13:37:45 +00:00
lotodore c14bb9470b More utf8 related fixes (some issues remain). 2007-12-11 20:40:39 +00:00
lotodore b97c56cd26 Use alternate dns name if name resolution fails for internet server (6dns.org seems to be unreliable, but is still the only one to provide both ipv4 and ipv6 name resolution for free). 2007-11-30 21:28:38 +00:00
lotodore a24a93caba Use unix linefeeds for all files. Finally. It's about time. 2007-11-16 15:24:25 +00:00
lotodore 5328bf082f Use boost::shared_ptr instead of std::auto_ptr where threads are involved, because std::auto_ptr is not thread safe. 2007-11-14 13:19:28 +00:00
lotodore 864af81193 Don't request own avatar from the server. Only request avatars of other players after joining a game. 2007-11-01 18:36:03 +00:00
lotodore 3ea61381ef Use client game id when kicking players during game. 2007-10-28 19:38:49 +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 8f1e5132d6 Added kick function with player name. 2007-10-27 18:51:53 +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