SIP Protocol and GUI problem

Hi,

I am using SIP protocol to subscribe to a list of buddies and then get notification about their status. it is asynchronous call I guess. I have 2 forms a loginForm and MainForm

the mainform module at loadEvent

SIPClient.SubscribeToList()

in SIP client I get NotifyEvent with buddy and status and I want to put it in a listview in the mainForm . what is the solution



Answer this question

SIP Protocol and GUI problem

  • Wicket

    In this project I have two forms a Login Form and a Main Form. In the Login Form I am Registering the user with the server using SIPClient.Register() then I have to Subscribe to a list of buddies and to get a notification about their status when changed. So what I did is put a listview in the main form that needs to be updated everytime someone changes his/her status. I called SIPClient.Subscribe() inside mainForm and then I have to update the listview when I receive the notification event. In Notify you get buddyname,status. So where is the best place to put SIPClient.Subscribe before logging in or after and how can I update the listview so frequently My solutions was to have a class called BuddyList with Buddy(name,status) and update them for everynotification but this did not work. The other solution I put everything in listview and I remove and add items for every notification. I hope this is clear, I have been stuck in this problem for 2 weeks. is DataBinding a solution


  • Grant Fritchey

    It appears you forgot to describe the problem. Generally you should use Control.Invoke() to access UI from another thread.



  • SIP Protocol and GUI problem