
30 Dec
2010
30 Dec
'10
3:35 a.m.
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>.