Boost logo

Boost Users :

Subject: Re: [Boost-users] Clients controlling server and other clients
From: Leo Cacciari (leo.cacciari_at_[hidden])
Date: 2012-12-06 09:55:01


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

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