Not logged in. · Lost password · Register
Forum: agsXMPP RSS
Avatar
marcelo #1
Member since Jul 2005 · 12 posts
Group memberships: Members
Show profile · Link to this post
Subject: bare minimum client
Hello
I'm in a hurry.
I'm not trying to develop a full client ( not by now, at least ).
I need to send messages to some users from within an application.
The important feature I need is to send the message even if the recipient is not on line at the time.
So I need the bare bones to
- log in to the designated server ( server, port, sender username and pass will be configured for the app )
- send the message to every designated recipient
- close connection

The most intriguing thing is if the type of the message must change if the recipient is online or not.

From the following code ( by pecesama )

        jClient.Send(new agsXMPP.protocol.Message("someJabberIdHere", agsXMPP.protocol.MessageType.chat, txtSend.Text));


pecesama is using "protocol.MessageType.chat"

Is that allways correct, even if the user is not online ?

Thank you
Avatar
Alex #2
Member since Feb 2003 · 4449 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
hi marcelo,

the type of the message has nothing to do with the online state of the user. All jabber servers that i know store the messages offline and deliver them to the users once they come online.
There are different message types in jabber/xmpp
1) chat is for instant chat messages with a high priority where you expect a fast answer.
2) normal is for message with lower priority. So its a replacement for email messages.
3) headline is meant for announcements.

Alex
Avatar
marcelo #3
Member since Jul 2005 · 12 posts
Group memberships: Members
Show profile · Link to this post
Subject: thank you
Thank you Alex
As you can see, I was asking most regarding the protocol and server implementation than the library itself.
I'm absolutely newbie to XMPP.
I selected it mainly because the "offline" storage.
But you teached me a very important distinction beteen message types, also.
Avatar
Alex #4
Member since Feb 2003 · 4449 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
hi marcelo,

a good start for learning XMPP is http://www.jabber.org. There you will also find the RFC's of the protocol.
JEP-0013 is also very intersting for extended and flexible offline messages.

Alex
Close Smaller – Larger + Reply to this post:
Verification code: VeriCode Please enter the word from the image into the text field below. (Type the letters only, lower case is okay.)
Smileys: :-) ;-) :-D :-p :blush: :cool: :rolleyes: :huh: :-/ <_< :-( :'( :#: :scared: 8-( :nuts: :-O
Special characters:
Forum: agsXMPP RSS