Commit Graph
63 Commits
Author SHA1 Message Date
Kai Philipp e18e459434 limitrank - draft with return false always 2019-09-09 19:21:15 +02:00
Lothar May 2b372d0019 Change option to disable guest login restriction. 2016-08-13 14:53:05 +02:00
Albert Medela 6bd0808427 Block duplicated IP for guests configurable 2016-08-04 21:34:38 +02:00
Kai Philipp 4682b51e40 servergame GetNumJoinsPerPlayer optimized 2016-07-30 19:05:16 +02:00
Albert Medela 35f0521bbd astyle, optimizations and test removed 2016-07-30 17:23:16 +02:00
Albert Medela 2a88775cca JUnit test for several guest users adapted 2016-07-23 20:58:18 +02:00
Kai Philipp 1b5cf1bfb8 guest IP-check and number of guest in lobby check combined now in one function 2016-07-19 14:01:13 +02:00
Albert Medela 1abc9dc452 Get guest users from session manager 2016-07-18 19:35:59 +02:00
Kai Philipp 24acd01e90 optimizations for number of game-joins per player, removed @XXX from comments 2016-07-17 16:55:06 +02:00
Albert Medela 8f5813416d Revert ProtoBuf to version 2.6.1 and running astyle 2016-07-12 18:36:25 +02:00
Albert Medela 724d30e61f Limit Guests users 2016-07-07 20:36:02 +02:00
Kai Philipp b6763bcfe8 number of guests limited 2016-06-29 18:06:28 +02:00
Kai Philipp cf280f0478 limted guest login - guest playerrights check done 2016-06-18 15:42:38 +02:00
Kai Philipp 935ec2ad92 limit guest logins - ip check done 2016-06-17 18:02:10 +02:00
lotodore 8baecdf9e0 Send spectator list to joining players. 2013-09-28 18:58:43 +02:00
lotodore 8e39432754 Adding websocket server code, so that a gateway is no longer required. Still kind of untested. Requires websocketpp. 2013-09-15 22:54:45 +02:00
lotodore eb571a8640 Automatically close games if only spectators are left. 2013-09-02 00:37:02 +02:00
lotodore 0be7632875 Fixing session counter with regard to spectators. 2013-06-29 23:44:00 +02:00
lotodore cbd6b40f85 Fixing operator order when checking for state bit. 2013-06-16 15:56:34 +02:00
lotodore 00543b7560 More work on spectator mode. 2013-06-16 10:43:13 +02:00
lotodore 45a5c7cef8 License change: OpenSSL exception (for Windows 8 support, because gcrypt does not work on Windows 8). 2012-12-25 15:06:23 +01:00
lotodore 0ed12e0ac8 Switching license from GPL2 to AGPL3. 2011-07-02 14:38:06 +00:00
lotodore 8bac902580 Fixing loads of msvc warnings (mainly size_t vs int issues). 2011-04-10 10:04:42 +00:00
lotodore 9b9a921867 Removing SessionWrapper to prepare rejoin. This also improves dispatching network packets. 2011-03-10 20:55:46 +00:00
lotodore dafd78c578 Fixing player counter - only count sessions which are established (after login). Send number of players in announce message. (Bug found through test case.) 2011-02-13 17:24:40 +00:00
lotodore 02518c67b2 Reformatting code using Kernighan & Ritchie style, tabs, tab width=4.
Command line: astyle --style=kr --indent=force-tab=4 --lineend=linux -n -r <file names>
2011-02-11 20:02:08 +00:00
lotodore 4032bf48a2 Fixing cppcheck "Prefer prefix ++/-- operators for non-primitive types." issues. 2011-02-09 14:33:39 +00:00
lotodore 2dd18020a7 CppCheck fixes. 2011-02-08 16:00:43 +00:00
lotodore 0402313115 All players within a single ranking game need different ip addresses. 2010-10-02 19:50:49 +00:00
lotodore 04436c260b Fixing "game does not start automatically" issue. 2010-09-26 06:58:49 +00:00
lotodore 7899f66cf6 The server now sends a notification if the game name is already in use. 2010-07-14 08:17:07 +00:00
lotodore e1904680e7 Fixing login race condition. 2010-03-31 13:34:35 +00:00
lotodore d28fe8eee7 Small fixes. 2009-09-27 21:46:44 +00:00
lotodore 48c4c69277 Integrating authentication - now all authentication attempts fail (still work in progress). 2009-09-26 16:05:35 +00:00
lotodore 6eb25757bc Prevent exceptions when closing sockets. 2009-08-17 10:11:51 +00:00
lotodore 68ed10fd1e More fixes concerning lobby chat. 2009-08-15 14:08:48 +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 31dadd6fa2 Removing old native socket stuff which is now unused (replaced by asio calls). 2009-06-16 22:00:07 +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 55bd832955 Fixed network game termination. 2009-06-04 22:13:52 +00:00
lotodore 8005cc82c6 Fixed server termination crash. However, network games are still not properly terminated. 2009-06-04 20:37:18 +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 0ef69297d1 Server support for unsubscribing/resubscribing of lobby messages. Not yet used by the client. 2008-05-11 21:41:30 +00:00
lotodore e107cf98fa Network timeout system also works from within a game now. 2008-03-06 15:27:31 +00:00
lotodore a3aee2b33a Reset network activity timeout only for certain packets. 2008-03-05 18:41:25 +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 689b22e0b9 The sender thread has been rewritten with a new algorithm in mind. The sender should not stall any more, and no timeout is required. There are no more send priorities.
The avatar manager no longer serializes access to avatar files.
2007-11-20 23:58:24 +00:00
lotodore a24a93caba Use unix linefeeds for all files. Finally. It's about time. 2007-11-16 15:24:25 +00:00
lotodore ef84c7b81a Fixed kick bug by letting the client reverse iterate over its cached player data when looking for a player name. Added several exceptions. 2007-11-10 22:18:31 +00:00