Commit Graph
77 Commits
Author SHA1 Message Date
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
lotodore e6d1b46ba1 SCTP support. 2007-06-04 16:49:19 +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 2022e794ae Removed some TODOs. Fixed network error message. 2007-06-02 21:19:19 +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 36496a402f Fixed a problem where an empty chat message would cause an uncaught exception. 2007-05-27 22:23:48 +00:00
lotodore 13a731e041 Chat messages are now working. 2007-05-25 16:03:12 +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 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 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 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 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 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 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 2f5c8d7da1 Redone network packet abstraction. Prepared for easy access to packet data. 2007-04-08 16:18:20 +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 d4855a2ca2 Added simple server. Added session establishment (only test code). Added sender thread. 2007-02-25 23:16:26 +00:00
lotodore 9ec3e020dd Cleaned up the code. Added client exception for error handling. 2007-02-18 11:26:57 +00:00
lotodore ca6adbb295 Added client callback interface. 2007-02-18 01:16:18 +00:00
lotodore fc25ae5a8b Added GUI as parameter for client thread constructor. Fixed linux header for getaddrinfo. 2007-02-18 00:10:26 +00:00
lotodore 592863ecf5 Client thread test version. Ready to connect. 2007-02-17 23:44:45 +00:00
lotodore b6923b8d38 First rough outline of the network client thread. More to be done soon. 2007-02-16 00:03:30 +00:00