mirror of
https://github.com/vanitasvitae/Smack.git
synced 2025-09-09 00:59:39 +02:00
Don't repeat documentation, link to it instead
also fix some typos and improve some markdown formatting.
This commit is contained in:
parent
5a5524623c
commit
393c713471
2 changed files with 19 additions and 35 deletions
|
@ -1,4 +1,5 @@
|
|||
Smack Overview
|
||||
==============
|
||||
|
||||
[Back](index.html)
|
||||
|
||||
|
@ -6,21 +7,23 @@ Smack is a library for communicating with XMPP servers to perform real-time
|
|||
communications, including instant messaging and group chat.
|
||||
|
||||
Smack Key Advantages
|
||||
--------------------
|
||||
|
||||
* Extremely simple to use, yet powerful API. Sending a text message to a user can be accomplished in only a few lines of code:
|
||||
|
||||
|
||||
XMPPConnection connection = new XMPPTCPConnection("xmpp.org");
|
||||
```java
|
||||
AbstractXMPPConnection connection = new XMPPTCPConnection("jabber.org");
|
||||
connection.connect();
|
||||
connection.login("mtucker", "password");
|
||||
Chat chat = connection.getChatManager().createChat("jsmith@jivesoftware.com", new MessageListener() {
|
||||
|
||||
Chat chat = ChatManager.getInstanceFor(connection)
|
||||
.createChat("jsmith@jivesoftware.com", new MessageListener() {
|
||||
|
||||
public void processMessage(Chat chat, Message message) {
|
||||
System.out.println("Received message: " + message);
|
||||
}
|
||||
});
|
||||
chat.sendMessage("Howdy!");
|
||||
|
||||
```
|
||||
|
||||
* 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.
|
||||
* Does not require that you're familiar with the XMPP XML format, or even that you're familiar with XML.
|
||||
|
@ -28,12 +31,14 @@ Smack Key Advantages
|
|||
* Open Source under the Apache License, which means you can incorporate Smack into your commercial or non-commercial applications.
|
||||
|
||||
About XMPP
|
||||
----------
|
||||
|
||||
XMPP (eXtensible Messaging and Presence Protocol) is an open protocol
|
||||
standardized by the IETF and supported and extended by the XMPP Standards
|
||||
Foundation (([http://www.xmpp.org](http://www.xmpp.org)).
|
||||
|
||||
How To Use This Documentation
|
||||
-----------------------------
|
||||
|
||||
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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue