Re: [gnet-dev] Problem with g_io_add_watch



On 30 Jun 2001, Henrik Brix Andersen wrote:
> This results in some strange behavior from the callback I added earlier.
> It seems, as if data is ready to be read all the time, but when I read
> the channel in the callback (using g_io_channel_read ()), there is no
> data, and the function returns with G_IO_ERROR_NONE.
>
> Can I not write to a channel which has a watch for incomming data?

I'd guess the socket was closed by the other end.  Maybe invalid data was
sent?

David


-- 
      __          _    __ David Helder - dhelder umich edu
  ___/ /__ __  __(_)__/ / <http://www.eecs.umich.edu/~dhelder>
 / _  / _ `/ |/ / / _  /  Jungle Monkey: <http://www.junglemonkey.net>
 |_,_/|_,_/|___/_/|_,_/   Paper CD Case: <http://www.papercdcase.com>




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]