Commit Graph
147 Commits
Author SHA1 Message Date
lotodore ecab6ed86b Fixed a really nasty receive bug (TCP only). Using SCTP would be so much better... 2007-09-03 16:35:45 +00:00
lotodore 4ca2c72978 Fixed problem with recursive mutex. 2007-09-02 22:54:33 +00:00
lotodore dde14654f9 Trying to add computer players in dedicated server. Not fully functional yet (names are not shown). 2007-09-02 20:59:16 +00:00
lotodore bd53403752 Major redesign: Using game ids and player ids in gui (associated with tree view items).
Player list of all network games is now dynamically updated in lobby (no polling, server sends events).
2007-09-02 16:36:52 +00:00
lotodore d35f4ae997 Player list is now sent in Game List New notification. Not shown in dialog yet. 2007-09-01 22:59:55 +00:00
lotodore 22a0f2d67e Fixed name resolution on Windows 2000. 2007-09-01 15:23:14 +00:00
lotodore 1f6a10e2d1 Changes for mingw32 compatibility. Gave up using GetAddrInfoW. getaddrinfo is dynamically bound, gethostbyname is used if it is not available.
VC compilation is broken.

Make sure to use the dynamic boost-thread lib with mingw, as thread specific pointers are used!
2007-09-01 14:04:41 +00:00
lotodore fa8d7b14ec Information about the game is now shown in lobby, when selecting a game.
Some GUI modifications, GUI update is working properly now if the dialog is shown the second time (after clearing items).
List of players for the game is still missing. With the new on-demand model for player id/player name, this is kind of hard to implement.
2007-08-27 09:57:51 +00:00
lotodore 56b24e09eb Major design change in network protocol: Player information is now requested by clients whenever it is needed. The server only sends player ids. The client has a cache with player information. 2007-08-26 22:41:37 +00:00
lotodore 87941c632a Fixed local network game. Now using new config options. Client sends packets deferred to allow initialization. 2007-08-26 12:15:10 +00:00
lotodore dc0212bbc9 Changed networking code for new postRiverRun. 2007-08-22 23:00:51 +00:00
lotodore 636a49c1ef Work on error messages. 2007-08-21 20:46:55 +00:00
lotodore 388db7c16a Game List is now dynamically updated. 2007-08-21 19:50:13 +00:00
lotodore 3a2f3255af More fixes. Using player name as base for game name now. Removing games which have no players left. Check collision of all player names on connect (kind of slow, but name needs to be unique). 2007-08-21 17:27:13 +00:00
lotodore 3e4b134faa Yessss. Dedicated server is working, with some effort you can now create and join a game (start console server on local pc, start clients and use menu item "internet game"). Make sure to use different player names, there are no error messages yet.
More than one game cannot be created yet, but this is only due to no name input. Lots of issues still, don't expect this to be stable.
2007-08-21 13:18:18 +00:00
lotodore 839a4f7112 More steps towards supporting multiple games per server. Player rights still broken, so starting the game is not possible. Games are not yet terminated after all players have left. 2007-08-21 12:34:33 +00:00
lotodore 697f063eb1 First work on client code to support multiple games per server. 2007-08-20 23:25:12 +00:00
lotodore 95e5ee47cc Fixed multithreading issues when creating/joining a game. Sessions are now queued. 2007-08-20 22:55:39 +00:00
lotodore e08f8126aa Fixed game state for server. 2007-08-20 20:47:09 +00:00
lotodore 67e81d1631 More work on the server code. Still broken. 2007-08-20 20:37:54 +00:00
lotodore 9d63df9218 More work on server redesign. Network mode still broken. 2007-08-20 15:30:22 +00:00
lotodore 1d1d6480a9 Make it compile. Network mode not working currently. 2007-08-19 20:58:57 +00:00
lotodore e9202b774b Renamed some files for new networking engine. 2007-08-15 13:40:23 +00:00
lotodore 913f9db110 Preparing to rename some of the network engine files. 2007-08-15 13:36:29 +00:00
lotodore 59b7438376 Work on dedicated server. This svn revision is totally broken, it is part of a complete redesign of the server.
There is a lobby thread for the server, and each game has its own game processing thread and a sender thread. Connections can be accepted from different sources, i.e. TCP/SCTP over IPv4, IPv6, all those work well in parallel.
2007-08-15 13:28:28 +00:00
lotodore ab0dd1d065 Yet another try to fix network pot distribution. 2007-08-12 19:09:06 +00:00
lotodore 42cf7cb735 Fixed pot distribution in network games. Resetting computer player list after each game. 2007-08-11 21:21:41 +00:00
lotodore fd13bb56a1 Linefeed. *sigh* 2007-08-11 20:27:36 +00:00
lotodore 58c6bc7ddb A network game is now automatically filled up with computer players up to the configured maximum number of players. This should maybe be optional? 2007-08-11 20:24:08 +00:00
lotodore 26299e80c0 Server states can now handle multiple games (are multithreading capable). 2007-08-11 10:02:04 +00:00
lotodore 6a580c81d5 This revision manually adds one computer player in network games. Don't start with 7 players. 2007-08-10 23:52:31 +00:00
doitux 6c48924667 fixed 2007-08-10 23:40:38 +00:00
doitux 7a0ae803e2 buggy!!! 2007-08-10 23:34:56 +00:00
doitux e696fb4257 BeRo refactoring 2007-08-07 23:59:34 +00:00
lotodore 829f094ce8 Fixed networking (LocalHand::getPreflop etc. now return the correct objects). Removed even more code which is no longer needed. 2007-08-07 21:17:11 +00:00
lotodore 03ecc5b9cb Removed client code which is no longer needed now. Networking still somewhat broken. 2007-08-07 20:37:34 +00:00
lotodore 0aef0d9e42 Removed dependencies on old preflop/flop/turn/river interface from networking. Compiles, but networking is BROKEN. Also includes first try of computer players for networking, which is broken, too. 2007-08-06 21:38:09 +00:00
lotodore 0da29b3874 The console server can now be fully used for a single game. The first player to join the game is admin, he can start the game and kick players.
However, if the admin player leaves, a new game can only be started if all players have left before (this is a bug, admin status should be passed to another player).
2007-08-02 20:52:13 +00:00
lotodore f11998c28c Added console server app. First try. Depends on qt for locale-specific stuff. Cannot start a game yet, only join is possible. Cannot run multiple games yet.
Not yet as service/daemon, because testing is easier with a simple console app.
2007-07-30 23:22:58 +00:00
lotodore 5d13dd7803 Went over netpacket.cpp - additional checks, check function in base class. More restrictive concerning size of packets. 2007-07-29 23:45:10 +00:00
lotodore bd08245c1c (Hopefully) solved the player number problem, when players join and leave an existing game. Numbers are now assigned on game start, not before. Note: Network play is not compatible to the current official version. 2007-07-24 14:55:14 +00:00
lotodore 5c63a12104 All sounds are now only played if sound output is on (even the ping in network game). Audio is only initialized if it is enabled. Fixed double sounds in network games. Simplified fading out cards on fold. 2007-06-16 09:48:23 +00:00
lotodore 89620a7702 Fading out cards when server folds because of timeout. 2007-06-15 22:05:03 +00:00
lotodore 43cb4664cf Fixed the refresh of the local action. 2007-06-15 21:15:37 +00:00
lotodore 4e6a78dcb5 Fixed player disconnects (again). 2007-06-15 20:56:31 +00:00
lotodore e19f6c7471 Rewrote the code which handles leaving of players during the network game. Some bug is still remaining. 2007-06-15 10:38:41 +00:00
lotodore 7345630c0d boost timer: total_seconds instead of just seconds. Fixed bug where an invalid hand object was accessed. Only set action to "fold" for leaving players if they are active and are not fold. 2007-06-14 20:29:59 +00:00
lotodore 0470bceeff Make sounds work in network games. 2007-06-11 21:51:58 +00:00
lotodore 5af91f4ea2 Winning a game is now logged. 2007-06-11 20:35:12 +00:00
lotodore 0d4e38705d It is now possible to start the network game with a player number below the maximum player count. 2007-06-11 19:46:18 +00:00