Re[2]: First steps problems
From: Andreev Nikita <nik@xxxxxxxx>
Date: Mon, 12 Mar 2007 11:35:49 +0100 (CET)
Hi.

>> You need to retrieve the data manually for blocking connections (by
>> calling Clientbase::recv() regularly), or you can use threads to let the
>> connection blocks (but this is not recommended).

>> See http://camaya.net/api/gloox/index.html#block_conn_sec for details.

>> Cheers,
>> Vincent

> Thanks for the useful link. For some reason I didn't find it myself.
> Now I understand why my application hangs, but why I don't receive
> "Connect" when I use "cl->connect(false)"? I found that onConnect is
> never called in this case.

> Regards,
> Nikita.

I found answer. I should manually call recv() in both situations. But
how I can regularly call recv() w/o threads? With select()?

Regards,
Nikita.