[Twisted-Python] XmlStream and addObserver - root element's name?
Gabriel Rossetti
gabriel.rossetti at arimaz.com
Thu Dec 18 11:07:26 EST 2008
Gabriel Rossetti wrote:
> Hello Marcin,
>
> Marcin Gliński wrote:
>> 2008/12/17 Alvin Delagon:
>>
>>
>>> XmlStream is an implementation of XMPP/Jabber protocol (which is
>>> widely used
>>> for Instant Messaging).
>>>
>>
>> Which XmlStream? I've found two:
>>
>> XMPP: twisted.words.protocols.jabber.xmlstream
>> X-ish: twisted.words.xish.xmlstream
>>
>> I've been trying to use the second one. Are they the same?
>>
> use the second one, unless you are writing a Jabber client/server. The
> Xish one is more generic, I use it in my apps. Imagine that the XMPP
> session is like one giant XMPP msg/document, it's root element/node is
> <stream/>, a session must be opened by each party if it's bidirectional :
>
> Client Server
> | <stream> |
> |----------------------------------------->|
> | | open the session
> | <stream> |
> |<-----------------------------------------|
> | |
> | <msg>.....</msg> |
> |----------------------------------------->|
> | | exchange msgs (as many as you want)
> | <msg>.....</msg> |
> |<-----------------------------------------|
> | |
> | </stream> |
> |----------------------------------------->|
> | | close the session when done
> | </stream> |
> |<-----------------------------------------|
> | |
>
>
> I hope this helps,
> Gabriel
>
oups, the spaces got eaten up, those pipe ('|') symbols are supposed to
be aligned on the right side....
>>
>>
>>> You might want to take a look at twisted XML-RPC libraries.
>>>
>>
>> Sure, I will. Thanks :)
>>
>>
>>
>> ~MG.
>>
>> _______________________________________________
>> Twisted-Python mailing list
>> Twisted-Python at twistedmatrix.com
>> http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python
>>
>
> _______________________________________________
> Twisted-Python mailing list
> Twisted-Python at twistedmatrix.com
> http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python
More information about the Twisted-Python
mailing list