Boost logo

Boost Users :

Subject: Re: [Boost-users] boost asio tcp::socket assign
From: Igor R (boost.lists_at_[hidden])
Date: 2010-12-30 05:35:48


> 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 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