
28 Jan
2010
28 Jan
'10
9:35 a.m.
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.