
8 Mar
2010
8 Mar
'10
6:28 p.m.
On 8 March 2010 11:32, pedro chaparro
Hi, based on the example http://www.boost.org/doc/libs/1_42_0/doc/html/boost_asio/tutorial/tutdaytime..., i wanna to separate the part of the code that open de connection , and the part of the code that write a string over the socket, the problem is , that i have no clear how to share the information of the socket between the both fuctions. In this code below i suppose that listen fucion must to return the socket information, but what data type must the function listen() return??? thanks so much in advance
I use a unique_ptr member, e.g.: std::unique_ptrboost::asio::ip::tcp::socket m_socket