Not logged in. · Lost password · Register
Forum: MatriX RSS
Avatar
hardmanii #1
Member since Apr 2011 · 20 posts · Location: seoul
Group memberships: Members
Show profile · Link to this post
Subject: I want to know all users status. For example, who is online or not?
hi. help me please.


I want to know all users status. For example, who is online or not?

Is there a way that I can get this information?


All User Presence
Avatar
Alex #2
Member since Feb 2003 · 4295 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
After login you get the user status (in XMPP called presence) automatically for all your subscribed contacts. This comes in in the OnPresence event in XmppClient. By default all users are offline, you get the OnPresence event only for only users.

Alex
Avatar
hardmanii #3
Member since Apr 2011 · 20 posts · Location: seoul
Group memberships: Members
Show profile · Link to this post
Hi Alex,

thank you for the very quick answer.

i know your answer.


i want to request Roster updates ..

i want to openfire online user checking. i want to get all-user status infomation.

button click event -> get all-user status.
Avatar
Alex #4
Member since Feb 2003 · 4295 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
in XMPP there is no request where you can collect all presences at once. you get all presences in the OnPresence event.
Just store all presences you get in the OnPresence event in a Dictionary, then you can access all presences whenever you need to.

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: MatriX RSS