Commit Graph
100 Commits
Author SHA1 Message Date
lotodore 9a59e688e6 Logging in network games should work now. 2007-06-07 18:41:11 +00:00
lotodore fc447164c0 Added compile instructions for vc/windows. 2007-06-07 16:25:47 +00:00
lotodore a4944ce34f Linefeeds. 2007-06-07 16:19:51 +00:00
lotodore 0bb9143855 Added missing include for TCP_NODELAY. 2007-06-07 16:18:06 +00:00
lotodore 48c7a27145 Pot and total sets are now displayed correctly. 2007-06-07 15:09:51 +00:00
lotodore 05a86be4fe Delay after showing cards when all in condition is true. Added option TCP_NODELAY. Round is now shown before dealing cards. 2007-06-07 14:06:22 +00:00
lotodore 8a22157cbd First try of showing cards when everybody is all in. 2007-06-06 21:16:52 +00:00
lotodore ce6f489fba Added additional packet for showing cards when allInCondition is true. 2007-06-05 23:04:51 +00:00
lotodore 9a3e45d710 Added delays between dealing cards. Added check for IPv6. 2007-06-05 21:28:47 +00:00
lotodore 2ade19b45d Fixed protocol for name resolution. 2007-06-04 21:44:42 +00:00
lotodore dcbfe39fc9 Fixed typeo. *sigh* 2007-06-04 17:42:20 +00:00
lotodore 686c028b38 Server errors are now shown. 2007-06-04 17:04:03 +00:00
lotodore 8c9fbca0fb Changed IPv6 loopback name, since ubuntu does not seem to resolve localhost for ipv6. 2007-06-04 16:57:01 +00:00
lotodore e6d1b46ba1 SCTP support. 2007-06-04 16:49:19 +00:00
lotodore 895317a257 Fixed missing include. 2007-06-04 16:30:30 +00:00
lotodore b9ccba6ed4 Proper detection whether SCTP is available. Do not update player names on configuration change if network client is running. 2007-06-04 16:19:11 +00:00
lotodore f932e39983 Players should now be able to leave a network game, the other players can continue the game (if it wasn't the server who left). 2007-06-03 14:57:33 +00:00
lotodore 1fcb0c80fd Fixed init gui in networking (is now thread safe). Fixed displaying of game/hand number for network games. 2007-06-03 13:36:24 +00:00
lotodore 03bffdbc76 Fixed sound using streams. 2007-06-03 10:03:54 +00:00
lotodore 2022e794ae Removed some TODOs. Fixed network error message. 2007-06-02 21:19:19 +00:00
lotodore df2e7a84dd Do not exit if sound cannot be initialized. 2007-06-02 20:02:55 +00:00
lotodore b7b09aed0b Fixed bug when folding after raising. 2007-06-02 16:35:41 +00:00
lotodore 9512133490 Made it compile on windows. Fixed bug: Chat during change of hand did not work. Changed audio extension to wav. 2007-06-02 15:53:19 +00:00
lotodore ab4cf73caa Fixed utf-8 bug in server profiles. 2007-05-27 22:56:44 +00:00
lotodore 36496a402f Fixed a problem where an empty chat message would cause an uncaught exception. 2007-05-27 22:23:48 +00:00
lotodore 875750a998 Game now properly continues after someone looses. 2007-05-27 21:39:16 +00:00
lotodore 4dc13d9661 Fixed wrong assert. Chat now continues after end of game. 2007-05-27 20:50:24 +00:00
lotodore a53738135d Fix resetting action too early in network client. 2007-05-27 18:38:53 +00:00
lotodore 1232017e3a Fixed running more than the first hand in network games. 2007-05-27 13:24:52 +00:00
lotodore 5cb5509dec Networking should mostly be working now. Some small issues concerning the display of pot/sets, and some delays are still needed. 2007-05-26 17:06:03 +00:00
lotodore c5e34fe186 Should be working to play up to river. 2007-05-25 19:53:07 +00:00
lotodore e14d01432c Flop/turn/river cards are now sent in a network game. 2007-05-25 18:28:05 +00:00
lotodore 13a731e041 Chat messages are now working. 2007-05-25 16:03:12 +00:00
lotodore e8d7009106 Fixed GUI refresh. Added calls to setHighestSet. 2007-05-24 23:38:40 +00:00
lotodore 5431f0b93a Network: First round seems to work fine now. Pot/sets not yet displayed correctly. 2007-05-24 20:26:23 +00:00
lotodore 2556f43340 First try: Transferring client action. 2007-05-23 22:31:56 +00:00
lotodore e01ea96727 Fixed some small server issues. Players in the process of establishing a session are now kicked on game start.
If someone tries to join a game which is already running, a proper error message is shown.
When sending a message to all or all but one players, the players which do not have the session established are now correctly ignored.
2007-05-23 08:57:34 +00:00
lotodore 2e12f1bc25 Fixed id bug in networking code. Dealer id is now set correctly. Phew. 2007-05-22 23:27:21 +00:00
lotodore b83c86d887 Do not globally use namespace std. 2007-05-22 22:40:44 +00:00
lotodore 5744980d36 First try for small blind / big blind before start of hand. There seems to be a problem with player ids or numbers, however. 2007-05-21 22:16:32 +00:00
lotodore 4dd26a3c3a Fixed g++ warnings. Additional client displaying. 2007-05-21 19:52:26 +00:00
lotodore 2ce67297ee Tools - random number function is now static. Fixed player number issue with network games (GUI player number needs to be 0), this still requires some work. 2007-05-21 19:00:06 +00:00
lotodore 3ede810baa Fixed player number when showing cards - much more work is needed for this. 2007-05-21 17:27:04 +00:00
lotodore e4039695c0 Protocol changes for big blind / small blind. GUI Player is now stored in Game. 2007-05-20 22:49:07 +00:00
lotodore 5438aa487c Added connect timeout. 2007-05-20 11:11:07 +00:00
lotodore 4a53678291 Client engine factory needs to be free of configuration file (configuration provided by server). Separated specific start data from general game data. Sending client game object to GUI after creation. Client thread now manages player and game data. 2007-05-20 00:16:29 +00:00
lotodore e7b31f2d44 All gui calls through guiwrapper are now thread safe. 2007-05-18 23:16:54 +00:00
lotodore bb8a235b22 Added protocol comment. 2007-05-18 17:19:43 +00:00
lotodore b773c30ae0 Start position of dealer is now set via network. Added files for network client engine. Added factory code. 2007-05-18 17:13:27 +00:00
lotodore c160a09811 Some include file optimizations. Fixes for the server. 2007-05-15 20:37:37 +00:00
lotodore 5f033730da Restructured network server. 2007-05-14 21:18:24 +00:00
lotodore 80a11af74c IPv6 fix. 2007-05-14 20:48:13 +00:00
lotodore 2d894c6a2c Trying to bring life to the server. 2007-05-14 12:40:42 +00:00
lotodore 7540ea17bd Fixed relationship of network session and player data to be consistent with the game engine. Now sending card's values via network. Fixed net packet checks. 2007-05-13 22:25:59 +00:00
lotodore 60eb04a920 Fixed linefeed. 2007-05-13 17:51:52 +00:00
lotodore 37bf6e4eb9 Added packet type to start a "Hand". Added generic gui for the server. 2007-05-13 17:50:48 +00:00
lotodore 6fbef0af20 Two step initialization for engine. First step: Create and initialize objects (constructor). Second step: Start the engine, update the UI. 2007-05-12 22:00:59 +00:00
lotodore 7c6337d810 Changes in preparation for the integration of the network server. GUI does not directly know Game and Hand any more, only Session. WARNING: This version crashes due to initialization order problems. 2007-05-11 12:01:13 +00:00
lotodore 16c0d52689 New packet types. 2007-05-08 22:08:00 +00:00
lotodore a6f6c99c92 Fixed vector of tixmlelements. 2007-05-08 21:05:45 +00:00
lotodore 0befc1836f Updated protocol for game communication. 2007-05-08 08:39:45 +00:00
lotodore 4a10d6188c Fixed player counting bug. Fixed player number. Joining/leaving network game should work now. Added player type to localplayer. 2007-05-08 06:45:46 +00:00
lotodore d24a45f354 Ignore boost timer warnings in msvc. 2007-05-07 09:34:36 +00:00
lotodore a85ec4ee5a Players can now join and leave as they wish. Still TODO: Need to fix player number. 2007-05-06 23:27:08 +00:00
lotodore 476035f791 Fixed error reporting (temporary fix). 2007-05-05 21:40:24 +00:00
lotodore 82b5392ff5 Added new boost timer. Prepared fixes for removing players. 2007-05-05 21:14:23 +00:00
lotodore f6fb29b883 GUI initialization now called by session. 2007-05-02 21:20:54 +00:00
lotodore da2939a7a8 Error messages are shown when joining a network game fails. Still need to handle players which left and kicking players. 2007-04-28 13:07:06 +00:00
lotodore e0bc14282f Now using int as parameters for the signal/slot method. This needs to be fixed some time... 2007-04-27 22:55:19 +00:00
lotodore 73a5117066 Configuration is transferred. A new game should be started on client side, but signal/slot is not working yet. Oh well. 2007-04-27 21:35:18 +00:00
lotodore 29b6050ee1 Game configuration now placed in a struct. Prepared to send/receive game configuration over tcp. 2007-04-26 23:07:08 +00:00
lotodore e202a83fbc Fixed bug: "hands before raise" is now taken from dialog. Removed config from game.cpp for networking. 2007-04-26 21:11:13 +00:00
lotodore 1466251db8 Removed ifdef. 2007-04-25 17:41:31 +00:00
lotodore 043f743568 Fixed server profile file names for utf-8 support. 2007-04-25 17:40:59 +00:00
lotodore a8cce94d3b Back to rev. 347 2007-04-20 23:14:08 +00:00
lotodore 27cd08ccb0 Maximum number of players is now a constant in game_defs.h. 2007-04-17 07:28:32 +00:00
lotodore 496261de7b Changes for Win98 support. 2007-04-13 22:10:55 +00:00
lotodore 07a0e01620 Added callback to display player names of connected players. 2007-04-08 20:35:42 +00:00
lotodore 2f5c8d7da1 Redone network packet abstraction. Prepared for easy access to packet data. 2007-04-08 16:18:20 +00:00
lotodore 4633a0fdea Added Win32 libs so that the static qt works without additional changes. Only affects the Win32 version. 2007-03-29 23:34:41 +00:00
lotodore 556eede4b9 Updated the protocol documentation. 2007-03-28 16:09:56 +00:00
lotodore 2fd204592b First version of the icon for Win32. 2007-03-28 16:01:38 +00:00
lotodore ab28f22913 Added network protocol documentation. 2007-03-22 00:16:11 +00:00
lotodore 62e72617ba When creating a network game, a client is also started.
Network errors are handled globally.
Fixed last network thread issue by using a notification queue, should work fine now.
2007-03-20 14:05:16 +00:00
lotodore 804c7eaaa2 Fixed design problem: Thread objects can now be created in any context.
Sender thread output queue is now limited.
Server thread now terminates correctly.
Now cloning packets when sending them to multiple recipients.
Fixed one thread issue - GameStart still needs to be made thread safe.
2007-03-20 11:56:30 +00:00
lotodore ef10602d5c Initial handshake and network game start. Works with multiple clients. Not yet stable, because it is not thread-safe. GUI callbacks not complete yet (server dialog not updated). 2007-03-20 02:20:50 +00:00
lotodore ca354dce7f Started to implement server state engine. 2007-03-13 23:27:17 +00:00
lotodore f5289a6fcf Added helper class for receiving data. Modified sender thread to support sending partial packets. Prepared abstractions for server state machine. 2007-03-13 02:23:12 +00:00
lotodore cb3c17573d That thread_specific_ptr was rubbish... 2007-03-02 00:34:50 +00:00
lotodore b7790e94ff 2007-03-02 00:04:18 +00:00
lotodore a046ba0e95 2007-02-25 23:33:55 +00:00
lotodore d4855a2ca2 Added simple server. Added session establishment (only test code). Added sender thread. 2007-02-25 23:16:26 +00:00
lotodore c7fc79e6ff 2007-02-25 20:23:01 +00:00
lotodore 07c08c0599 Linux fixes. 2007-02-25 20:06:24 +00:00
lotodore a2134c3fa5 Additional include files for linux. 2007-02-25 19:56:58 +00:00
lotodore 9d7924c840 2007-02-25 19:41:49 +00:00
lotodore 0246fae4cb 2007-02-25 19:40:24 +00:00
lotodore 82cf963f0a Connect is now non-blocking. Fixed problem in resolver thread where socket was closed. 2007-02-25 18:22:19 +00:00
lotodore d63588f54b Name resolution can be aborted. Fixed bug in socket_set_port. 2007-02-25 17:08:58 +00:00
lotodore 6e7f6dfdbe Cleanup of the joinnetworkgamedialog. Thread creation/termination is now done in main window. Added code to locate memory leaks. 2007-02-19 00:39:44 +00:00