
8 Mar
2010
8 Mar
'10
11:03 a.m.
pedro chaparro wrote:
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
Both functions seem to be in the same class, so why not share the information through member variables? Regards, Rutger