On Monday October 24 2005 23:53, Lou wrote:
> 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.
Great! I just fired up my editor and was about to dive into the code. -)
I'll add a note about your findings to the api docs, though.
cheers,
Jakob
Attachment:
pgpqPgkebqYsR.pgp
Description: PGP signature
--
gloox-dev mailing list
to unsubscribe:
send a message with subject 'unsubscribe gloox-dev' to minimalist@xxxxxxxxxx