Boost logo

Boost Users :

Subject: Re: [Boost-users] [asio] How to deal with no-connect and/or read-timeout
From: Michael Powell (mwpowellhtx_at_[hidden])
Date: 2013-06-27 09:02:09


On Wed, Jun 26, 2013 at 9:39 AM, Arash Partow <arash_at_[hidden]> wrote:
> On 26/06/2013 7:11 PM, Bjorn Reese wrote:
>>
>> Could you provide some guidance about the pros and cons of
>> Context versus Fiber versus Coroutine so that we are in a better
>> position to select the appropriate module?
>>
>
> Not guidance per se but here's a nice example:
>
> https://github.com/chriskohlhoff/asio/blob/master/asio/src/examples/cpp11/spawn/echo_server.cpp

Looks like that spawns a couple of strands of lambdas.

The same thing could be done with member functions?

We don't have an echo server, but would be reading event messages from
a client in one strand, then adapting some sort of subscriber/channel
pub/sub push/pull methodology to send event messages to the client.

I gather with the asio io_service strand approach, that is running a
couple of threads concurrently? I am noticing the steady timer shared
between both strands, for instance.

Thanks!

> _______________________________________________
> Boost-users mailing list
> Boost-users_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/boost-users


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