RV: Receiving messages blocks all :-(

"Jose Ignacio Gisbert" <[email protected]>
Newsgroups gmane.comp.python.windows-ce,gmane.comp.python.general,gmane.comp.python.tkinter
Message-ID <[email protected]>
First, sorry for sending this mail to this list, I know this is off-topic,
but xmpppy-devel mailing list is out of work :-(  If someone uses xmpppy,
please try to answer me, or at least give me a more adequate mailing list,
please. Thank you.

----------------------------------------------------------------------------
----------------------------------------------------------------------------
---------

 

 Hi all,

 

I am a newby in xmppy, and I want to make a very simple messaging jabber
client. As I read from different tutorials, it seems very easy, in fact, I
can send messages to other jabber clients from my “poor” application, but
the problem appears when I try to receive messages. I do more or less what
Sebastian Moors explains in his “xmpppy: a practical guide”, i.e (code
fragment):

 

def StepOn(conn):

    try:

        conn.Process(1)

    except KeyboardInterrupt:

        return 0

    return 1

 

def GoOn(conn):

    while StepOn(conn):

        pass

cl=xmpp.Client(jid.getDomain(),debug=[])

cl.connect()

cl.auth(jid.getNode(),jidparams['password'])

cl.sendInitPresence()

cl.RegisterHandler('message',messageCB)

cl.RegisterHandler('presence',presenceCB)

 

GoOn(cl)

 

 

But when my application enters in GoOn loop, it completely freezes (I have
to shut down it by force). Anyone knows why or knows another solution for
receiving messages?, I’m using Windows but I don’t think it is the problem.


 

Thanks in advance, best regards,

_______________________________
José Ignacio Gisbert Sanus

_______________________________________________
PythonCE mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pythonce
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.