Re: [gtkmm] I/O Connection::disconnect() doesn't work as expected.
- From: Eric Buddington <eric ma-northadams1b-39 bur adelphia net>
- To: Martin Schulze <MHL Schulze t-online de>
- Cc: ebuddington mail wesleyan edu, gtkmm-list <gtkmm-list gnome org>
- Subject: Re: [gtkmm] I/O Connection::disconnect() doesn't work as expected.
- Date: Thu, 26 Sep 2002 00:39:17 -0400
On Wed, Sep 25, 2002 at 09:56:55PM +0200, Martin Schulze wrote:
> connection.disconnect() and returning 'true' in the callback function
> should have the same effect, i.e. stop further calls of the callback
> function, remove the file descriptor from the poll table and internally
> destroy the 'connection node' and the 'source' structure. No recovery
> is possible as all information about the filedescriptor to poll and
> the callback function to call is deleted.
Are you certain that a return value of 'true' acts as disconnect()? I
had previously assumed that returning 'false' would do this (guessing
from old GTK+ timeout docs), and it mostly worked. Swapping logic per
your description above (true => disconnect) seems to break things more.
Sorry I don't have the time/ability to scan the source for the answer.
I'm working on a test case for the disconnect() strangeness I saw.
-Eric
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]