Draft IM2000 over XMPP protocol definition
Wes Morgan <[email protected]>
| Newsgroups | gmane.mail.im2000 |
|---|---|
| Organization | Libretech.org |
| Message-ID | <[email protected]> |
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 While I'm thinking about all this, I'm just going to send my thoughts to the list. Here's an initial draft of what IM2000 over XMPP might look like. Feedback is *definitely* encouraged here. :) Example 1. A typical new message notification <iq type='set' to='[email protected]/im2000client' from='[email protected]/im2000server' id='1'> <query xmlns='jabber:iq:im2000'> <message> <id>987654321abcdef</id> <status>new</status> <subject>Hello from Sender!</subject> </message> </query> </iq> Example 2. A typical message request packet <iq type='get' to='[email protected]/im2000server' id='1'> <query xmlns='jabber:iq:im2000'> <message> <id>987654321abcdef</id> </message> </query> </iq> Example 3. Response to request in example 2 <iq type='result' to='[email protected]/im2000client' from='[email protected]/im2000server'> <query xmlns='jabber:iq:im2000'> <message> <id>987654321abcdef</id> <status>new</status> <subject>Hello from Sender!</subject> <body encoding='ascii'>Hello Receiver, how are you doing today? I'm doing well. Just thought I'd drop you a line. Isn't IM2000 cool? Check out the graphic I attached!</body> <attachment encoding='8bit/mime'>(lots of garbage)</attachment> </message> </query> </iq> So obviously this is meant to get us thinking about what all tags/attributes we want to have in our jabber:iq:im2000 namespace. Feel free to rip my examples to shreds and suggest entirely different ways of doing this. Once we get a protocol that seems fairly workable, I'll start writing some code. Wes Morgan - -- This American dream may be poisonous Violence is contagious Crowded or empty I walk these city streets alone Whoever brought me here Is gonna have to take me home "What I'll Remember Most" - Over the Rhine - ---------------------------------- Libretech.org - Technology Is Free (http://www.libretech.org) -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.3 (GNU/Linux) iD8DBQE/VCyFI89ooLagmnQRAiKcAKDIrXD9RwjgY8GWsdR6OSY3kDmfMwCePjxj OblyN1F/6OLfYJyaTDo8U3g= =+S+5 -----END PGP SIGNATURE-----