|
Boost Users : |
Subject: Re: [Boost-users] how to share information about a open socket?
From: Rutger ter Borg (rutger_at_[hidden])
Date: 2010-03-08 06:03:25
pedro chaparro wrote:
> Hi, based on the example
>
http://www.boost.org/doc/libs/1_42_0/doc/html/boost_asio/tutorial/tutdaytime2.html,
> 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
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