
30 Dec
2010
30 Dec
'10
10: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 optionaltcp::socket.