[PythonCE] RV: Receiving messages blocks all :-(

Jose Ignacio Gisbert jigisbert.etra-id at grupoetra.com
Wed Dec 5 08:36:19 CET 2007


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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/pythonce/attachments/20071205/f9437997/attachment.htm 


More information about the PythonCE mailing list