Boost logo

Boost Users :

Subject: Re: [Boost-users] [Asio] read_some throws exception with IOCP disabled
From: Emil Dotchevski (emildotchevski_at_[hidden])
Date: 2010-01-22 18:00:14


On Fri, Jan 22, 2010 at 10:30 AM, Collin Dauphinee
<dauphinee_at_[hidden]> wrote:
> I have a piece of code that works completely fine with IOCP enabled, but
> when I disable it via the BOOST_ASIO_DISABLE_IOCP define, any attempts to
> call socket.read_some will throw an exception. This exception states that
> "An operation was attempted on something that is not a socket."

One possible reason for getting this error is that the socket you're
trying to read from has been closed or shut down. Just something to
look into.

Emil Dotchevski
Reverge Studios, Inc.
http://www.revergestudios.com/reblog/index.php?n=ReCode


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