NetworkListener » History » Revision 1
Revision 1/2
| Next »
Maximilien Cuony, 10/15/2009 05:54 PM
NetworkListener¶
Chat¶
To use the chat, you need to get the pointer of the chat object with the method getChat.
Send message¶
Use the send method of the chat object. You will get back your own message.
Get messages¶
You need to register the newChatMessage signal who will be called for each message get.
Search¶
Use the method search to create a new search object. Register the found signal to get back the search result. The signal can be emitted several time.
A search has a limited life time. If isDead return true, no more result will be returned and the search object is useless.
Use search on the search object to begin the search. This function can be called only one time, to make a new search create a new search object. You must (except if you don't care about results but...) have registered to the signal before launching the search !
Updated by Maximilien Cuony about 15 years ago · 1 revisions