Boost logo

Boost Users :

Subject: [Boost-users] Boost ASIO write: Socket operation on non-socket
From: Sharma, Nishant (Nishant_Sharma_at_[hidden])
Date: 2018-01-11 03:24:35


Hi,

I cannot post the complete program, but when I do asio::write , I get the error:

write: Socket operation on non-socket

Now, just before that I check if the socket is opened or not and it indeed is opened.

io_service is also running..

I just need some pointers and possible cause for this so that I can debug and take his further...

My use model is I call asio::write which is synchronous and for reading I use async_read which first reads the header data and then calls asio::read to read the actual data.

Best Regards,
Nishant Sharma



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