Can I use xmpp for other purposes?
I need to build a real-time android applic开发者_高级运维ation. I just wondering, can I use xmpp for my data transmission solution? I've been looking around, and most of xmpp clients are used for chatting.
From my understanding, XMPP messages are based on XML, so if you have a small amount of structured data you want to send, you should be fine. Large data is a problem, however. From the wikipedia page:
Because XMPP is not yet encoded as Efficient XML Interchange but as a single long XML
document, binary data must be first base64 encoded before it can be transmitted in-band. Therefore any significant amount of binary data (e.g., file transfers) is best transmitted out-of-band, using in-band messages to coordinate. The best example of this is the Jingle XMPP Extension Protocol, XEP-0166.
精彩评论