in reply to Instant Messaging Protocol

Your proposed protocol reminds me very much of SMTP.

Therefore, as Net::SMTP (and a few others) is built on top of Net::Cmd, I think you might want to take a look at that.

Replies are listed 'Best First'.
Re: Re: Instant Messaging Protocol
by Eyck (Priest) on Jan 06, 2004 at 13:29 UTC

    Well, SMTP is quite well designed,

    how do you propose one would do encryption with Net::Cmd?

    It's not an easy task, I already tried it with Net::FTP, and failed.

    Also, Net::CMD follows rather synchronous operation ( you send a command, and then hang until your receive status report for that ), and you can't receive any message unless you check the server.

    use Net::CMD; .... $n->command("MSG service12@host.tld"); $x=$n->response();
    What happens when I receive a message from someone before server sends 'OK' response to me?

    And that's exactly the main point - most 'classic', well-designed protocol work like that, they don't expect the server to send some message out of the blue (irc being the only exception I know).

    Can you see the problem here?