Menu Content/Inhalt
Home

Articles

Poker Tips

Login






Lost Password?
No account yet? Register

PokerTH - Forum

homepost replythreaded viewruleshelp
 
<< Start < Prev 1 2 3 Next > End >>
aelOnn
User

Expert Boarder
Posts: 37
graphgraph
Karma: 1  
anti deconnection system - 2007/06/19 03:49 If one of the players is disconnected -especially the server- it would be nice to have an auto-pause system in the timeout...
  The administrator has disabled public write access.
lotodore
Admin

Admin
Posts: 182
graphgraph
Karma: 10  
Re:anti deconnection system - 2007/06/20 02:37 What exactly do you mean by this? What do you mean by disconnected - do you mean that the network connection is lost or that someone reboots his/her PC? --
Use IPv6. http://www.sixxs.net/
  The administrator has disabled public write access.
aelOnn
User

Expert Boarder
Posts: 37
graphgraph
Karma: 1  
Re:anti deconnection system - 2007/06/20 06:28 Hi Lotodore,
I meant a network disconnection.
  The administrator has disabled public write access.
lotodore
Admin

Admin
Posts: 182
graphgraph
Karma: 10  
Re:anti deconnection system - 2007/06/22 02:48 The more I think about it - this is actually a great idea.

Basically, my plans were that if someone leaves, the game continues without him (he will auto-check and auto-fold), and will be able to re-join within a certain time limit. But this is very hard to implement.

Auto-pausing the game during disconnection would be a lot easier to implement. I'll keep that in mind. Thanks for the feedback!
--
Use IPv6. http://www.sixxs.net/
  The administrator has disabled public write access.
aelOnn
User

Expert Boarder
Posts: 37
graphgraph
Karma: 1  
Re:anti deconnection system - 2007/06/22 04:02 About your first solution, I don't know how you design the client/server communications, but we could imagine something like that:

Without play order at the end of the timeout, the server auto-plays for the client, as usual (checking or folding), but he could also launch a thread who tries to "ping" the client during the turn, waiting for a reply. And could display a message like "disconnected" under the player's avatar.
When it get's a reply, the message is removed.

In the same time, if the client does not receive acknowledgment from the server for his move, it considers itself as "disconnected", displays a message "please wait for reconnection or quit", and wait for the server's ping.

Problem is: the player will probably lost his hand, but at least, the all game is not ruined.
We can also imagine a special option or message for the server like "a player is not responding, pause or continue ?"

What do you think ?
  The administrator has disabled public write access.
lotodore
Admin

Admin
Posts: 182
graphgraph
Karma: 10  
Re:anti deconnection system - 2007/06/22 23:15 aelOnn wrote:
Without play order at the end of the timeout, the server auto-plays for the client, as usual (checking or folding), but he could also launch a thread who tries to "ping" the client during the turn, waiting for a reply.

Well, making the server ping the client is basically a bad thing to do. One reason why this is bad is that there might be situations where the server needs to ping a lot of clients, or even fake clients, and this will eat up a lot of bandwidth. This could be used to attack the server (in case of a dedicated server).

The new protocol SCTP takes over this task, so best would be to use it. Sadly, in most cases SCTP does not work behind NAT (i.e. behind a router). And: There is still no proper SCTP support for Windows.

Usually, the pinging is done by the clients (it is called a "heartbeat" or "keepalive"), with the server confirming. If the server does not receive a keepalive within a certain time, it will assume the client is disconnected.

The problem is then, that the client has to reestablish the TCP connection. This is where things get hard to implement, since the client re-joins a game which is already running. He might not have the current state of the game, so all state needs to be transferred. This can be simplified by waiting for the end of the hand until the player is allowed to join, still, some problems remain.

Since the server decides what to do, and since the game needs to continue after a client timed out (the other players are waiting), I think it is not possible to prevent that the player who disconnected loses a hand.

The special message "pause or continue" is also an option, in other games you can also vote whether to kick players which are disconnected.

Still, this needs a lot of work, and the simple solution to pause the game would be easiest to implement.
--
Use IPv6. http://www.sixxs.net/
  The administrator has disabled public write access.
<< Start < Prev 1 2 3 Next > End >>
designed by www.madeyourweb.com