On Friday December 30 2005 17:41, Steve Scott wrote:
> In all these examples, the only way to send a message seems
> to be as a response to receiving a message...?
>
> If I want to be able to send a message without first having
> to receive one, wouldn't I need to call
> j->connect(false);
>
> Maybe I just got it wrong. But, if I'm right, is
> there some example code that shows me how to write
> a application that doesn't depend on receiving
> a message in order to send one?
Hi Steve,
you're right, for reasons of simplicity the examples expect some kind of input
from the server.
What you probably want is to integrate gloox with an event loop. If you don't
want to write your own, the GUI toolkit of your choice is probably offering
one.
Then Client::connect( false ) is the way to go. Everything else depends on the
design of your application and the toolkit you use.
cheers,
Jakob
Attachment:
pgpTpciW0bn0A.pgp
Description: PGP signature
--
gloox-dev mailing list
to unsubscribe:
send a message with subject 'unsubscribe gloox-dev' to minimalist@xxxxxxxxxx