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.