Boost logo

Boost Users :

Subject: Re: [Boost-users] passing socket descriptor to a function
From: Igor R (boost.lists_at_[hidden])
Date: 2010-01-28 04:35:13


> I'm not an expert in programming so i dont know if this is the best way to do it. I just want to access to the variable socket from anywhere.

Then study the examples coming with asio:
http://www.boost.org/doc/libs/1_41_0/doc/html/boost_asio/examples.html

You will find there good design proposal to use with synchronous and
asynchronous approaches.


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