The use of OpenFire as a server, so no need to write a server, will save a lot of things, openfire after a simple configuration can realize a communication server basic functions,
OpenFire
With Java development, open source real-time collaboration (RTC) servers are based on the XMPP (Jabber) protocol.
Xmpp
An xml-based protocol that inherits the flexibility of development in an XML environment. Therefore, the application based on XMPP has super scalability. Extended XMPP can address the needs of users by sending extended information, as well as applications such as content publishing systems and address-based services at the top of XMPP. Furthermore, XMPP contains software protocols for the server side to communicate with the other, making it easier for developers to build client applications or to add functionality to a system that is well equipped.
Smack
Is the Instant Messaging client programming library
Advantages of Smack
1:smack is a simple, powerful class library.
2: Do not force you to encode at the packet level like other libraries. It provides more intelligent analogies such as chat and groups to make your work more efficient.
3: You don't need to be familiar with XMPP XML format, or even XML format.
4: Easy to implement machine-machine dialogue.
5:apace License under the open source software. You can use it for your commercial or non-commercial applications.
Now let's look at the OpenFire server,
After downloading OpenFire on the official Internet, decompression, open the bin directory of Openfire.exe, click Launch Admin, open the OpenFire management console, the first entry will appear configuration interface,
Because only simple functionality is implemented, the server does not make complex configurations for the time being. So the database chooses OpenFire to bring its own