(Detailed introduction to smack class library
Smack is a library for chat and instant message exchange using XMPP server. Smack's key benefits:
An easy-to-use and powerful API. Only three lines of code are required to send a text message xmppconnection connection = new xmppconnection ("jabber.org");
connection. login("mtucker" , "password");
connection. createChat(“ jsmith@jivesoftware.com ”). SendMessage ("Hello!");)