|
Boost Users : |
Subject: Re: [Boost-users] Transmitting serialized data of multiple types and variable length over a socket
From: Michael Caisse (boost_at_[hidden])
Date: 2009-08-26 01:13:18
A.Agrawal_at_[hidden] wrote:
>
> Questions:
> 1. I am not sure if I should use synchronous or asynchronous
> communication, I am inclined towards synchronous.
Asynchronous will scale better than a synchronous solution. In other words, if implemented
correctly your asynchronous solution will use less resources than the synchronous
solution.
> 2. What is the best way to send this data across from a server to
> multiple clients and from one client to one server.I don't know the
> best way to implement it. Please advise what is the best way or if you
> know of an example.
I recommend that you take a look at the chat server/client example. It does exactly
this type of thing using an asynchronous solution.
Good luck.
Michael
-- ---------------------------------- Michael Caisse Object Modeling Designs www.objectmodelingdesigns.com
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