Not logged in. · Lost password · Register
Forum: agsXMPP RSS
C# asp.net agsXMPP1.10
Avatar
KEN_OH #1
Member since Feb 2010 · 3 posts
Group memberships: Members
Show profile · Link to this post
Subject: Getting presence problem :: Need HELP
hi all,
I tried to select connected buddys I used this code :

private void xmpp_OnPresence(object sender, Presence pres)
{
    ArrayList buddys = Cache["buddys"] as ArrayList;
    buddys.Add(pres.From.User + " (" + pres.Show.ToString() + ") (" + pres.Status + ")");
}

protected void Timer1_Tick(object sender, EventArgs e)
{
    ArrayList buddys = Cache["buddys"] as ArrayList;
       
    if (buddys != null)
    {
        if (buddys.Count > 0)
        {
            connected.Text += buddys.Count.ToString() + "<br />";
            foreach(string buddy in buddys)
            {
                connected.Text += buddy + "<br />";
            }
        }
    }
}

the result is always 3 :

3
user1 (NONE) ()
user2 (NONE) (texte status)
user1 (NONE) ()

=> user1 is my user (from my website)
=> user2 is connected from an other web interface

how can I resolve this problem ?
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