[jdev] Formal Component Protocol
Jonathan Dickinson
jonathan.dickinson at k2.com
Wed Nov 12 05:14:49 CST 2008
Hi All (esp. PSA :)),
One thing that I have seen with my experiences so far is that there is practically no formal component protocol. <http://xmpp.org/extensions/xep-0114.html> only shows us how to establish a stream. Things that nag me (which I still have to figure out, so if you have answers...):
* No indication on newer authentication protocols, just handshakes (don't need answers here, I can take example from other server docs, FYI Tigase has really good docs in regard to this)...
* Binding which is mainstream in, from what I can tell, all current XMPP servers. This is not in the XEP.
* Routing stanzas, again, are not in the XEP.
Here comes the big one: given that binding is for all intents and purposes 'official', how do I handle these scenarios:
* I want to send a message directly to "router15" (one of the components) and not have it leave the network.
* I want to send a message to all components of a specific type (related to the above).
* I want to send a message to a user.
My current best guess is (these are embedded in the body of stream:stream):
<!-- send message to specific component -->
<route from="sm" to="sqlAuth">
<client:iq type="get" from="jim at foo.com" to="foo.com">
<!-- SASL stuff -->
</client:iq>
</route>
<!-- send message to all components of a specific type -->
<route from="router2" to="router*">
<presence type="unavailable"/> <!-- router going down -->
</route>
<!-- send message from component to user -->
<client:iq type="result" from="foo.com" to="jim at foo.com">
<!-- SASL stuff -->
</client:iq>
Thanks again.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.jabber.org/jdev/attachments/20081112/64739764/attachment-0003.htm>
More information about the JDev
mailing list