Hi, Peter:

It's easy. Please follow the console thread code in call example. You
may use main_thread.Start() to start a new thread to deal with XMPP
signal. Do not forget set the thread as the current thread.

And, set your main_thread object as a global variable in your process.


Ling


On Sep 18, 5:29 pm, peterx86 <[EMAIL PROTECTED]> wrote:
> Hello
>
> I am implement a text messaging client based on libjingle.
>
> In our team, my task is to provide the jabber messaging related
> library like roster, subscription, presence etc. All of these work
> fine during my own testing.
>
> However, my testing problem blocks the whole main thread. This
> blocking is due to code:
>
> main_thread.Run(); //under the cover, there is a while(true) loop
> implemented by libjingle.
>
> Although it works fine. But other team members want me to provide
> unblocked libary/code. So that they can use the same thread to run the
> application logics like read the keyboard input from the users.
>
> Although it seems that libjingle support multiple thread and provide
> some utilities, i am not sure how to make the messaging code(listening
> for incoming jabber stanza) and user input run in different threads
> currently.
>
> Please help
>
> regards
> peter


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"google-talk-open" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-talk-open?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to