Re: Getting notificaiton of failed login
From: Lou <lou@xxxxxxxxxxxxxxxxxxxx>
Date: Mon, 24 Oct 2005 23:53:57 +0200
On Mon, Oct 24, 2005 at 09:30:24PM +0200, Jakob Schroeter wrote:
> Hi Lou.
> 
> On Monday October 24 2005 02:06, Lou wrote:
> > I can't figure out for the life of me how to get notification of a
> > failed login.
> 
> If you're using 0.6.x, this is a known bug. It should be fixed in 0.7-pre2.
> If you're using 0.7-pre2, the above statement is void. ;)
> I'll look into it anyway.

I am using 0.7-pre2, but I found the problem.
It works fine when calling ClientBase::connect() by itself.
However, I am polling on the descriptor and calling
ClientBase::recv().  The key is the polling part.
I was only polling on POLLIN (I'm actually using poll() instead of
select()), and it turns out that I also have to poll on POLLOUT.  With
that change, I can now get onDisconnect called.

The bright side is that I now have a spiffy demo program that
demonstrates polling on the descriptor; without the complications of the
rest of the program that I am working on.  8)



-- 
gloox-dev mailing list
to unsubscribe:
send a message with subject 'unsubscribe gloox-dev' to minimalist@xxxxxxxxxx