|
|
|
@ -9,9 +9,14 @@ ADDR")](http://tools.ietf.org/html/rfc6122). Pontarius XMPP is part of [the |
|
|
|
Pontarius project](http://www.pontarius.org/), an effort to produce free and |
|
|
|
Pontarius project](http://www.pontarius.org/), an effort to produce free and |
|
|
|
open source, uncentralized, and privacy-aware software solutions. |
|
|
|
open source, uncentralized, and privacy-aware software solutions. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
While in alpha, Pontarius XMPP works quite well and fulfills most requirements |
|
|
|
|
|
|
|
of the RFCs. |
|
|
|
|
|
|
|
|
|
|
|
Prerequisites |
|
|
|
Prerequisites |
|
|
|
------------- |
|
|
|
------------- |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Pontarius XMPP requires GHC 7.0, or later. |
|
|
|
|
|
|
|
|
|
|
|
You will need the ICU Unicode library and it's header files in order to be able |
|
|
|
You will need the ICU Unicode library and it's header files in order to be able |
|
|
|
to build Pontarius XMPP. On Debian, you will need to install the *libicu-dev* |
|
|
|
to build Pontarius XMPP. On Debian, you will need to install the *libicu-dev* |
|
|
|
package. In Fedora, the package is called *libicu-devel*. |
|
|
|
package. In Fedora, the package is called *libicu-devel*. |
|
|
|
@ -97,6 +102,10 @@ back to the recipient. This can be done like so: |
|
|
|
Just answer -> sendMessage answer sess |
|
|
|
Just answer -> sendMessage answer sess |
|
|
|
Nothing -> putStrLn "Received message with no sender." |
|
|
|
Nothing -> putStrLn "Received message with no sender." |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
You don't need to worry about escaping your <code>Text</code> values - Pontarius |
|
|
|
|
|
|
|
XMPP (or rather, [xml-picklers](https://github.com/Philonous/xml-picklers)) will |
|
|
|
|
|
|
|
take care of that for you. |
|
|
|
|
|
|
|
|
|
|
|
Additional XMPP threads can be created using <code>dupSession</code> and |
|
|
|
Additional XMPP threads can be created using <code>dupSession</code> and |
|
|
|
<code>forkIO</code>. |
|
|
|
<code>forkIO</code>. |
|
|
|
|
|
|
|
|
|
|
|
|