1) OK. I have implemented an acknowledgement of receipt system from the client. When custom raws are sent by the server, it stores them. When the client receives them, it sends an acknowledgement to the server via a command. Periodically, the server checks that the stored messages have been received. A message that was not acknowledged within 3 seconds is sent again. Obviously, the client has to deal with this also, so that it does not deal twice with the same message, a case why may happen. Finally, I also manage the raws order because it is important for me that messages are dealt wih in order.
It seems to be working fine. And I'll certainly be willing to share the code with the community if anyone is interested. 2) However I have another problem now. I thought that checking that messages sent by the client were received by the server was going to be easier. Well, maybe, but I have not yet found how to make it work. Just starting though. I use normal Transport Method (2 I believe). When you disconnect temporarily the client, reconnect it and the sends another command, everything is fine, the command is sent. But, if while the client is disconnected, a command is sent, then after the reconnection, the command is not sent. So how do we cope with this? Finally, when the client sends one or several commands, it gives a response. But how do I assign the response to the corresponding commands... All this may not be as easy as it seemed to be in the first place. Any idea welcome. Many thanks. Nicolas. On 10 nov, 14:39, Nicolas <[email protected]> wrote: > Hi, > > Is there a little bit of acknowledgement of receipt in APE? > > Client sending to server: > I believe there is not much problem as the server returns something on > every custom command sent by the client (and can even send an error > code or whatever is needed) > > Server sending to client: > That seems more complicated to me. Is there any way at all (without > adding my own layer) to know that a command/message sent by the server > has been received by the client. I have started to implement my custom > acknowledgement of receipt but realize that there might already be > some hidden indicator that would just let me know this, without much > more trouble. > > In any case, any thoughts on this subject truly appreciated. > > I really need to check that a raw has been received. I am working on a > board game server and I can't allow that a move gets lost in > cyberspace, as it happens currently, with a relatively high frequency > (maybe 1 out of 500 messages for some) for some unlucky players, > resulting in one game out of 10 freezing for them. On my computer > however, I have never seen a frozen game which confirms that the > quality of the client Internet connection is the limiting factor here. > > Thanks in advance. > > Nicolas. -- You received this message because you are subscribed to the Google Groups "APE Project" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/ape-project?hl=en --- APE Project (Ajax Push Engine) Official website : http://www.ape-project.org/ Git Hub : http://github.com/APE-Project/
