Boost logo

Boost Users :

Subject: Re: [Boost-users] boost asio tcp::socket assign
From: Lloyd (lloydkl.tech_at_[hidden])
Date: 2011-01-01 01:10:03


Thanks Igor. Wish you (all) a very happy new year...

On Thu, Dec 30, 2010 at 4:05 PM, Igor R <boost.lists_at_[hidden]> wrote:
>> then is there any method/operator (=) available in asio to assign a
>> socket to another socket?
>
> No, socket is non-copyable. If you have to create and pass the socket
> object to from outside, you can define a smart-ptr to tcp::socket in
> your class, or an optional<tcp::socket>.
> _______________________________________________
> Boost-users mailing list
> Boost-users_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/boost-users
>


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