Smack is a library for communicating with XMPP servers to perform real-time communications, including instant messaging and group chat.
Extremely simple to use, yet powerful API. Sending a text message to a user can be accomplished in only a few lines of code:
```java AbstractXMPPConnection connection = new XMPPTCPConnection("mtucker", "password", "jabber.org"); connection.connect().login();
Message message = new Message("jsmith@jivesoftware.com", "Howdy! How are you?"); connection.sendStanza(message); ```
Doesn't force you to code at the XMPP protocol level, as other libraries do. Smack provides intelligent higher level constructs such as the Chat
and Roster
classes, which let you program more efficiently.
XMPP (eXtensible Messaging and Presence Protocol) is an open protocol standardized by the IETF and supported and extended by the XMPP Standards Foundation (XSF, http://www.xmpp.org).
This documentation assumes that you're already familiar with the main features of XMPP instant messaging. It's also highly recommended that you open the Javadoc API guide and use that as a reference while reading through this documentation.
Copyright (C) Jive Software 2002-2008