Boost logo

Boost Users :

Subject: [Boost-users] Threading and Asio
From: Gonzalo Garramuno (ggarra13_at_[hidden])
Date: 2012-11-09 19:38:59


I started playing with asio server/client model and I run into a
problem. I have a thread for the server, another for the client and
another for the send/receive message. This results in:

write: Socket operation on non-socket

as the send thread is not made aware of the socket initialized in the
client thread.
I'm wondering what is the solution to have the send in a separate thread.


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