Not logged in. · Lost password · Register
Forum: MatriX and XmppDotNet RSS
Avatar
hardmanii #1
Member since Apr 2011 · 20 posts · Location: seoul
Group memberships: Members
Show profile · Link to this post
Subject: how to logined check?
hi ~ alx

how to logined check?

logined check?

login event :
this._XmppClient.OnLogin += new System.EventHandler<Matrix.EventArgs>(this.XmppClient_OnLogin);

i want to not double logined. login check
Avatar
Alex #2
Member since Feb 2003 · 4449 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
You can use the StramActive property for this.

Alex
Avatar
hardmanii #3
Member since Apr 2011 · 20 posts · Location: seoul
Group memberships: Members
Show profile · Link to this post
Subject: thank you. but not reply
thank you.

StreamActive:
 Gets a value indicating whether the XMPP stream is active or not.
(Inherited from XmppStream.)


but. i want to . openfire logined user name.

how to get openfire logined user name?
Avatar
Alex #4
Member since Feb 2003 · 4449 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
StreamActive tells you whether the XmppClient has an active (logged in) stream or not.
The username is in XmppClient.Username

In XMPP the same user can have unlimited concurrent logins to a XMPP server. Only the resource must be different for each user.

Alex
Avatar
hardmanii #5
Member since Apr 2011 · 20 posts · Location: seoul
Group memberships: Members
Show profile · Link to this post
Subject: thank you very much~
thank you :)


Q. how to get find?  openfire user Client Sessions
Avatar
Alex #6
Member since Feb 2003 · 4449 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
Quote by hardmanii:
Q. how to get find?  openfire user Client Sessions

login in the server admin console and go to the session page.
As a normal user you can't look up the sessions. Only as admin in the console, and with some severs also over XMPP and service discovery when you are a server admin.

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: