I need few pieces of code to talk to each other - they need to be able to send short messages, they need to be sure that messages was received etc..
I looked at Jabber/JXTA, it's way to complicated, I looked at Beep, seems to suffer from the same sickness - specs look ok, but when it comes to implementation you get all that hairy xml everywhere...
So I figure i will have to design the protocol myself, I don't think that's the sanest approach...
In other words - I MUST be missing something, there obviously already were people with similiar requirements, and they just had to design something sane and simple, I just couldn't find it yet... Where should I look now?
For now I figured something like this would be sufficient:
->EHLO server <-HELO client ->STARTLS <-001 OK ->LOGIN USER PASS <-001 OK ->MSG 001 service12@server.net Hello world <-001 ACCEPTED 001 <-DLVRD 001 <-MSG service12@server.net Hello to you too
And we've got few requirements fullfilled:
One another alternative would be two-channel XML-RPC, that would go like this:
I want to send message to service12, I connect to xml-rpc server on it's server, and call method message("message"), then it connects back to me and calls confirm() on my xml-rpc server.
For interoperation with strange systems replace xml-rpc with soap.
Update:
I think it's not a very wise idea to put 'message delivered' confirmation into protocol. There's no need for that, I thought of that because
But on second thought I figured that apps that need that can easily implement on top of any messaging system, and putting it in protocol unnecesarily complicates things.
20040106 Edit by castaway: Changed title from 'Instant Messanging Protocol'
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Instant Messaging Protocol
by hardburn (Abbot) on Jan 05, 2004 at 14:44 UTC | |
by Eyck (Priest) on Jan 05, 2004 at 15:22 UTC | |
by hardburn (Abbot) on Jan 05, 2004 at 15:38 UTC | |
by Eyck (Priest) on Jan 06, 2004 at 08:26 UTC | |
by TStanley (Canon) on Jan 05, 2004 at 17:25 UTC | |
|
Re: Instant Messaging Protocol
by valdez (Monsignor) on Jan 05, 2004 at 15:21 UTC | |
by simonm (Vicar) on Jan 05, 2004 at 17:41 UTC | |
by Eyck (Priest) on Jan 06, 2004 at 12:22 UTC | |
|
Re: Instant Messaging Protocol
by zentara (Cardinal) on Jan 05, 2004 at 16:44 UTC | |
by Eyck (Priest) on Jan 06, 2004 at 12:49 UTC | |
|
Re: Instant Messaging Protocol
by bart (Canon) on Jan 06, 2004 at 13:00 UTC | |
by Eyck (Priest) on Jan 06, 2004 at 13:29 UTC |