Ozgur Ozturk wrote:
I used async echo server sample
http://www.boost.org/doc/libs/1_39_0/doc/html/boost_asio/example/echo/async_...as a starting point.
... Can I get information of connected sessions from io_service? (or any other recommendations on how to better design it?)
Maybe I should keep a global array of sessions, instead of creating it with a pointer session* new_session
You could use shared_ptr to avoid having to write a copy constructor/assignment operator and all those other 'evil' things.
is this a bad idea?
It seems like in the current code ONLY ONE session pointer is passed around. I had thought (from the name "session") there would be a session per connection?
Thanks again, Ozgur Ozturk www.DrOzturk.com
------------------------------------------------------------------------
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users