
On Fri, May 7, 2010 at 10:09, Sergei Trofimovich
1. gsasl hackage package did not build for me against libgsasl-0.2.28. It did not define _MAJOR _MINOR macros, So I had to update up to libgsasl-1.4 which worked fine. Is there way to put constraints to pkgconfig-depends to .cabal file?
Hm -- I didn't realize anybody was using pre-release GNU SASL libraries. I've updated the gsasl Cabal file to depend on version 1.1 or higher of the C library (which should be sufficient).
2. Just running echo.hs example causes it to be closed on timeout from server side (we use OpenFire and idle timeout there is 6 minutes). So my question is rore about library design abilities: can you inject ping stanzas (on expired timeout) messages into that example too?
Added to the example -- it now uses a thread to send ping stanzas every 60 seconds. You'll want to install n-p-xmpp 0.3.1 , which adds locking around the bodies of 'putStanza' and 'getStanza' -- this allows multiple threads to safely write to the session. Also: if there's anything else that you'd like to have added to the library, please feel free to ask! I don't do much fancy stuff with XMPP, so I don't know which XEP's would be the most useful to implement.