lotodore
38b1c4bafd
Use more graceful timeouts.
2007-10-29 09:34:28 +00:00
lotodore
bc11d42aba
Added missing log for exception.
2007-10-29 09:30:34 +00:00
lotodore
62e030d9e2
Suppress packet display for now.
2007-10-29 09:21:45 +00:00
lotodore
e36d878a07
Added code to run fast test games.
2007-10-29 09:18:34 +00:00
lotodore
6cdbb4807e
Run complete test games.
2007-10-29 09:17:04 +00:00
lotodore
f0c7fded3d
Fixed packet type.
2007-10-28 20:57:36 +00:00
lotodore
08ab159bc0
Fixes and part of new test.
2007-10-28 20:45:47 +00:00
lotodore
3ea61381ef
Use client game id when kicking players during game.
2007-10-28 19:38:49 +00:00
lotodore
717c0fcb98
Fixed memory leak.
2007-10-28 16:20:32 +00:00
lotodore
2bae534704
Additional flooding test.
2007-10-28 16:09:25 +00:00
lotodore
f821f9c0a4
No longer delay closing of sessions (not needed any more).
2007-10-28 15:21:24 +00:00
lotodore
cdea81b2ba
Fixed sender again, as it did not work when sending errors.
2007-10-28 15:06:57 +00:00
lotodore
e951bda1db
Flooding tests.
2007-10-28 13:24:06 +00:00
lotodore
b848d2125f
Specified some values in game info block.
2007-10-28 13:05:13 +00:00
lotodore
92f03db7a2
Always delay before closing a session. Last part of the fix.
2007-10-28 13:04:05 +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
bb64e07657
Show lobby for players if they are kicked during a game.
2007-10-27 20:29:46 +00:00
lotodore
e27be88942
Fixed bug when kicking during game.
2007-10-27 19:53:04 +00:00
lotodore
6b19b3291a
Missing if to check for kick in server during game.
2007-10-27 19:48:31 +00:00
lotodore
8f1e5132d6
Added kick function with player name.
2007-10-27 18:51:53 +00:00
lotodore
0d0104107b
More work on network tests.
2007-10-26 15:03:44 +00:00
lotodore
17af91ce05
More work on network tests.
2007-10-26 14:58:41 +00:00
lotodore
ae33299758
If a client does not initialize properly within a certain time, remove the network session.
2007-10-26 14:54:57 +00:00
lotodore
9368c5f16e
Network test fixes.
2007-10-26 10:51:03 +00:00
lotodore
e0f1193963
Clarified initialization order to prevent possible race condition when initializing a new game.
2007-10-25 21:59:06 +00:00
lotodore
d0c34c572b
Automatically cleanup cache once a day on the dedicated server.
2007-10-25 21:20:35 +00:00
lotodore
d0cea553df
Fixed boost string comparison. Oo.
2007-10-25 20:35:57 +00:00
lotodore
f019523879
Use boost for case insensitive comparison.
2007-10-25 20:26:44 +00:00
lotodore
f3556bff57
Case-insensitive channel names for IRC. Fixed leaving admin players.
2007-10-25 19:50:43 +00:00
lotodore
dc74186b5a
Fixed syslog stuff.
2007-10-24 23:24:57 +00:00
lotodore
9e180d01f3
Fixed error when transfering avatars. Additional logging.
2007-10-24 23:17:12 +00:00
lotodore
2152b90e20
Added code to automatically clean up avatar cache. There is a time limit (how long avatars are kept) as well as a number limit (how many avatars will be cached).
2007-10-24 22:20:35 +00:00
lotodore
b4848532f9
Added logging for server using syslog.
2007-10-23 21:26:07 +00:00
lotodore
ae030a3669
Fixed Lobby Thread termination issue if an exception is thrown.
2007-10-23 20:01:56 +00:00
lotodore
07a0b8503d
Fixed lobby update issue when computer players joined a game.
2007-10-21 18:36:56 +00:00
lotodore
7aec52327f
Increment beta revision.
2007-10-21 00:25:53 +00:00
lotodore
daa55efab7
Fixed exception issue when player statistics counter reached 0.
2007-10-21 00:17:04 +00:00
lotodore
d5453e5416
Fixed decreasing number of players when players leave.
2007-10-20 23:24:40 +00:00
lotodore
64ba7c0994
Show correct maximum player count in network games.
2007-10-20 22:34:14 +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
lotodore
c5246aaef3
Remove debug message.
2007-10-20 22:18:16 +00:00
lotodore
6a297effc1
Try to prevent (as much as possible) transfering and, more important, storing, any other files than avatars as png, gif and jpg. The headers of the files are checked whether they are valid for the corresponding format. Files without gif/png/jpg header are never stored on the server, and thus cannot be requested by any client.
2007-10-18 23:00:55 +00:00
lotodore
3e373be458
Fixed gcc compiler error.
2007-10-18 21:16:49 +00:00
lotodore
d91c972d3c
Fixed gcc compiler error.
2007-10-18 21:13:06 +00:00
lotodore
990b99f051
Fixed gcc compiler error.
2007-10-18 21:07:55 +00:00
lotodore
b8cfdb8ce0
Fixed gcc compiler error.
2007-10-18 21:05:36 +00:00
lotodore
e2fc19af93
Enable TCP keepalive on server side for all connected sockets. Won't help too much but better than nothing.
2007-10-18 21:00:11 +00:00
lotodore
c55089e728
Closing of the "starting game" dialog on error.
2007-10-18 20:58:56 +00:00
lotodore
c7a36ceca5
Linefeeds.
2007-10-18 20:41:13 +00:00
lotodore
4c56390dc7
Exceptions are now derived from std::exception and tell source code file and line.
2007-10-18 20:36:49 +00:00
lotodore
f5ea14fb9e
Updated version outdated messages.
2007-10-16 22:16:41 +00:00
lotodore
959b89f9ed
Do not save avatar files with unknown extensions.
2007-10-16 20:48:25 +00:00
lotodore
f4f654b5f3
(Hopefully) fixed compile issue when using full boost build with both mt and non mt libs.
2007-10-16 19:55:08 +00:00
lotodore
ad8095f379
Fixed avatars in network (non-public) games.
2007-10-15 08:37:32 +00:00
lotodore
94fbbe9ac5
Disallow space as first char of the player name.
2007-10-15 08:35:56 +00:00
lotodore
1a4fb609bf
Removed todo.
2007-10-15 00:02:03 +00:00
lotodore
c5c9ce262a
Additional LocalExceptions.
2007-10-14 17:49:15 +00:00
lotodore
e54242b711
Fixed possible security problem if cache dir is modified. Only files with md5sum as file name will be considered by the avatar manager.
2007-10-13 14:23:04 +00:00
lotodore
4b87de1795
Added type check functions.
2007-10-12 21:40:30 +00:00
lotodore
78af20482e
Fixed packet types.
2007-10-12 19:34:39 +00:00
lotodore
13e32d0656
Added placeholder for future change.
2007-10-12 16:04:00 +00:00
lotodore
b833b05787
Added error code and message for server maintenance.
2007-10-12 15:35:58 +00:00
lotodore
6cf0d8777a
Fixed protocol issue: Avatar data packets did not have any padding. Increased maximum packet size.
2007-10-12 15:15:03 +00:00
lotodore
375ea47778
Fixed linefeeds.
2007-10-12 14:42:33 +00:00
lotodore
4f00333599
Show and update admin player of a game even when in lobby and not in the game.
2007-10-12 14:32:25 +00:00
lotodore
96d1f34f5c
Added notification if a new release or beta release of PokerTH is available.
...
Removed last traces of deprecated blind values.
2007-10-12 13:07:04 +00:00
lotodore
54ad5e17e7
Added new networking-related error messages.
2007-10-11 22:13:20 +00:00
lotodore
9663a225d5
Fixed two bugs concerning lobby player notifications: Game state is now set correctly after a game was finished and reopened, for players which are joining afterwards.
...
Computer players are now properly removed from finished games.
2007-10-11 21:15:04 +00:00
lotodore
5218e038d4
Don't wait endlessly for player or avatar requests to complete if the other side does not have the required data. Send notifications and react accordingly.
2007-10-11 20:42:44 +00:00
lotodore
488e909838
Clarified "money won".
2007-10-11 16:06:28 +00:00
lotodore
9f478855db
Added error packets for unknown avatar and unknown player id (unused yet).
2007-10-10 23:41:50 +00:00
lotodore
253778bf30
Added error handling for networking stuff. Now checking the player action.
2007-10-10 22:21:24 +00:00
lotodore
de0f16a6fc
Disable SCTP/IPv6 option if not available.
2007-10-10 12:06:47 +00:00
lotodore
c65434fabb
Config option completely disables irc.
2007-10-10 11:56:09 +00:00
lotodore
bbb1377741
Transfer blind values as 32 bit values in network games. This version is not compatible to the current beta server.
2007-10-10 11:38:58 +00:00
lotodore
e92cbf2dc5
Fixed nasty bug in the create game notification.
2007-10-09 23:22:36 +00:00
lotodore
5aa08d03fb
Fixed byte order conversion for blind lists.
2007-10-09 22:47:20 +00:00
lotodore
67b3d8fb6c
Fixed compiler warnings.
2007-10-09 22:01:36 +00:00
lotodore
6f765d311b
Fixed changing admin when admin player leaves.
2007-10-09 22:01:12 +00:00
lotodore
f68cab9cc3
MSVC with qt 4.3.2 - this version of qt rulez!!!
2007-10-09 22:00:36 +00:00
lotodore
2e8a60bc0d
Fixed windows compile issue.
2007-10-09 16:12:10 +00:00
lotodore
e9d373893d
Fixed linux issues in libircclient.
2007-10-09 15:51:33 +00:00
lotodore
9ba000d7f9
Stop all GUI timers before starting an internet / network game.
2007-10-08 20:32:17 +00:00
lotodore
310fadefdb
Keep lobby open in the background during internet games. Show the lobby after the game finished. Re-open the game. Start and stop irc thread together with the client thread.
2007-10-08 20:14:44 +00:00
lotodore
dc8f9e0c73
Use player id as request id for avatar requests by the server.
2007-10-08 18:49:13 +00:00
lotodore
24ae6a66ed
Always use IPv6 for the server if a "dual stack" is available. This means a server on vista (as well as most linux systems) will support IPv6 by default. IPv4 requests will be mapped by the OS.
2007-10-08 18:25:40 +00:00
lotodore
9f698d6adc
Fixed IRC IPv6.
2007-10-08 15:04:02 +00:00
lotodore
d0ccc68d1f
IRC IPv6 support.
2007-10-08 11:07:32 +00:00
lotodore
d11b35a1a7
Transfer small blind and minimum raise amount to client.
2007-10-07 22:49:07 +00:00
lotodore
0547b7b37f
Removed hack which is not working anyway.
2007-10-07 21:52:15 +00:00
lotodore
0d0d8dc810
Synchronize on network game start, so that everyone has received all avatars and player names before the game starts. Store all computer players in a separate list on the server for name retrieval.
2007-10-07 21:23:37 +00:00
lotodore
d16312111f
Finally: User supplied avatars are transfered! They are stored on the server and clients request them if needed. Make sure the server has write access to the cache dir to make it work.
2007-10-07 18:46:40 +00:00
lotodore
639df29bdc
Server now requests unknown avatar files from client and stores them in the cache dir. Error handling is still missing. Clients not yet request avatar files from the server, this is the next step.
...
AvatarManager is now thread safe.
Default and cached avatars are handled in different lists to prevent deleting the default avatars when clearing the cache.
2007-10-07 15:52:12 +00:00
lotodore
4e649450b2
The server is now sending the highest set, and the client is no longer calculating it on his own. This should fix some bugs when someone goes all in with the big/small blind.
2007-10-06 14:16:36 +00:00
lotodore
4c9216dcc2
Fixed data path.
2007-10-06 13:19:49 +00:00
lotodore
3bb28de5ae
More work on sending/receiving avatars. Introduces low priority send queue, so that the server send thread is not stalled when sending loads of avatars. Not functional yet.
2007-10-06 12:50:19 +00:00
lotodore
31ff141196
Name fix.
2007-10-05 14:27:04 +00:00
lotodore
5d974a6450
More preparation towards transferring avatars.
2007-10-05 14:23:36 +00:00
lotodore
f1761a3793
First steps towards transferring avatars.
2007-10-04 23:05:50 +00:00
lotodore
901fc1634d
Added first parts of server test code.
2007-10-03 22:14:31 +00:00