XMPP implements simple Chat series---② user registration and Login

Source: Internet
Author: User

Whether it is registration or landing, or chat and other functions, you must first make a server connection, the connection code is as follows

① the custom XMPP Connection Tool class:
call to create a connection method:Connection Server method: * Note that the connection is not encrypted to the customer service side, so the server should change the settings, as such can be connected to the server ④ registration call Code: Login code: with the above tool class, the following is the call connection to login and registration, here is particularly important to note that these operations need to be called in the child thread, pro-Teststart thread Call registration code: Thread Code: ⑦< c11> Login and Registration code similar: at this point, login registration has been completed, the following can be tried, the results of the interface is not given! Welcome to Rose Blog http://www.cnblogs.com/lvyerose/

XMPP implements simple Chat series---② user registration and Login

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.