mirror of
https://codeberg.org/Mercury-IM/Smack
synced 2025-09-09 18:29:45 +02:00
Update README and documentation
This commit is contained in:
parent
018a7dd93a
commit
0b19c1b8ef
2 changed files with 8 additions and 14 deletions
|
@ -15,20 +15,14 @@ Smack Key Advantages
|
|||
AbstractXMPPConnection connection = new XMPPTCPConnection("mtucker", "password", "jabber.org");
|
||||
connection.connect().login();
|
||||
|
||||
Chat chat = ChatManager.getInstanceFor(connection)
|
||||
.createChat("jsmith@jivesoftware.com", new MessageListener() {
|
||||
@Override
|
||||
public void processMessage(Chat chat, Message message) {
|
||||
System.out.println("Received message: " + message);
|
||||
}
|
||||
});
|
||||
chat.sendMessage("Howdy!");
|
||||
Message message = new Message("jsmith@jivesoftware.com", "Howdy! How are you?");
|
||||
connection.sendStanza(message);
|
||||
```
|
||||
|
||||
* Doesn't force you to code at the packet level, as other libraries do. Smack provides intelligent higher level constructs such as the `Chat` and `Roster` classes, which let you program more efficiently.
|
||||
* 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.
|
||||
* Does not require that you're familiar with the XMPP XML format, or even that you're familiar with XML.
|
||||
* Provides easy machine to machine communication. Smack lets you set any number of properties on each message, including properties that are Java objects.
|
||||
* Open Source under the Apache License, which means you can incorporate Smack into your commercial or non-commercial applications.
|
||||
* Open Source under the Apache License 2.0, which means you can incorporate Smack into your commercial or non-commercial applications.
|
||||
|
||||
About XMPP
|
||||
----------
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue