9 Nov
2009
9 Nov
'09
2:05 a.m.
The error in the subject line occurs when attempting to assign a native socket to a Boost.Asio socket. I realize it's not very helpful since I'm not explaining where I am getting nativeSocket, but I was hoping someone let me know in general the cause of such an error, since there doesn't appear to be any documentation on it. I am almost positive that it is a valid socket, and its integer value is normally around 740. boost::asio::io_service ioserv; boost::asio::ip::tcp::socket s(ioserv); boost::system::error_code error; s.assign(boost::asio::ip::tcp::v4(), nativeSocket, error); if (error) cout << error.message() << endl;