Not logged in. · Lost password · Register
Forum: agsXMPP RSS
Avatar
loong #1
Member since Oct 2009 · 5 posts
Group memberships: Members
Show profile · Link to this post
Subject: a little problem about Server
Alex,

Hello. How can the xmpp server get the users' status(e.x,"online" or "not exist")?
Did agsXMPP SDK have a rule(or something else) to store it?

Thanks.
Avatar
Alex #2
Member since Feb 2003 · 4297 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
user status is called presence in XMPP. When you are subscribed to a user then you get the status in the OnPresence handler.

Alex
Avatar
loong #3
Member since Oct 2009 · 5 posts
Group memberships: Members
Show profile · Link to this post
Thanks,
but I have some other problems:

1    It seems that the OnPresence handler on defined in Class XmppClientConnection and XmppComponentConnection, did these classes only used in Client while programming?
2    Did the server keep the sessionId or something of the client in agsXMPP?
3    When client A send message to client B,how does the server do when  response? Would you mind give me an example about it?

Thanks very much for your help.
Avatar
Alex #4
Member since Feb 2003 · 4297 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
The server example included in agsXMPP is only a very basic example which shows you how to get started with server programming and agsXMPP.
Its far away from being a complete and usable server. So you have to implement presence, correct message routing, roster management and all other features yourself.

Alex
Avatar
loong #5
Member since Oct 2009 · 5 posts
Group memberships: Members
Show profile · Link to this post
Thank you, and best wishes for happy new year.
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