Clients controlling server and other clients

I am writing an application in which one of multiple clients need to control the server and the other clients. The example is the timeline of a flipbook player. If one client sets the timeline to 125, both the server and the other clients need to jump to frame 125. If the server's timeline is modified to 200, indeed the timeline needs to be set to the new value in all clients. I am puzzled on how to write this with asio. Any help is appreciated.

Il 05/12/2012 15:11, Gonzalo Garramuno ha scritto:
I am writing an application in which one of multiple clients need to control the server and the other clients. The example is the timeline of a flipbook player. If one client sets the timeline to 125, both the server and the other clients need to jump to frame 125. If the server's timeline is modified to 200, indeed the timeline needs to be set to the new value in all clients. I am puzzled on how to write this with asio. Any help is appreciated.
This doesn't look like an Asio problem, but more of a protocol design problem. _First_ you need to specify which kind of messages, containing which information and in what format are exchanged between server and clients in the cases you present and how are they exchanged (tcp connection? udp datagrams?). In a word, the protocol between the server and the clients. _Then_ you can address the problem of how to transmit/receive those messages using Asio (or any other means). just my 5 cents... -- Leo Cacciari Aliae nationes servitutem pati possunt populi romani est propria libertas

On 06/12/12 11:55, Leo Cacciari wrote:
I am writing an application in which one of multiple clients need to control the server and the other clients. The example is the timeline of a flipbook player. If one client sets the timeline to 125, both the server and the other clients need to jump to frame 125. If the server's timeline is modified to 200, indeed the timeline needs to be set to the new value in all clients. I am puzzled on how to write this with asio. Any help is appreciated. This doesn't look like an Asio problem, but more of a protocol design
Il 05/12/2012 15:11, Gonzalo Garramuno ha scritto: problem. _First_ you need to specify which kind of messages, containing which information and in what format are exchanged between server and clients in the cases you present and how are they exchanged (tcp connection? udp datagrams?). In a word, the protocol between the server and the clients. Currently, the language is a simple text language exchanged through a tcp connection. This works relatively okay for simple client-server.
participants (2)
-
Gonzalo Garramuno
-
Leo Cacciari