Blocking XMPP API?

  • Thread starter Gabriel Rossetti
  • Start date
G

Gabriel Rossetti

Hello everyone,

I am looking for blocking XMPP API. I'm wanting to make a webservice
that uses XMPP, but all the XMPP libs I find are non-blocking (i.e. w/
callbacks). I'd like to be able to do something like :

cl = Client("(e-mail address removed)/res01", "password",)
msg = "<m....."
result = cl.send(msg)
print "I got '%s'" % str(result)

any ideas? Using Java I have Smack which can either get msgs sync or
async, but I found nothing that can do this in Python.

Thanks,
Gabriel

--
Arimaz SA
Ingénieur en Informatique
Av. du 24 Janvier 11
Ateliers de la Ville de Renens, Atelier 5
1020 Renens, Switzerland
www.arimaz.com
www.mydeskfriend.com
Mob: +41-(0)79-539-0069
Tel: +41-(0)21-566-7343
 
L

Lawrence D'Oliveiro

Gabriel said:
I am looking for blocking XMPP API. I'm wanting to make a webservice
that uses XMPP, but all the XMPP libs I find are non-blocking (i.e. w/
callbacks).

So why not have the caller sleep or something until the callback is invoked?

It's easier to turn an async API into a synchronous one than the other way
round.
 
G

Gabriel Rossetti

Lawrence said:
In message <[email protected]>, Gabriel
Rossetti wrote:



So why not have the caller sleep or something until the callback is invoked?

It's easier to turn an async API into a synchronous one than the other way
round.
Yes, that is what I ended up doing, thanks for the response though :)

Gabriel
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Members online

Forum statistics

Threads
473,961
Messages
2,570,131
Members
46,689
Latest member
liammiller

Latest Threads

Top