Boost logo

Boost Users :

Subject: Re: [Boost-users] Clients controlling server and other clients
From: Gonzalo Garramuno (ggarra13_at_[hidden])
Date: 2012-12-07 07:47:30


On 06/12/12 11:55, Leo Cacciari wrote:
> 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.
Currently, the language is a simple text language exchanged through a
tcp connection.
This works relatively okay for simple client-server.


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net