Commit Graph
169 Commits
Author SHA1 Message Date
Florent Le Coz fb01f78b0a Rewrite the FindIconv module cleanly 2013-12-08 15:57:10 +01:00
Florent Le Coz 2c9680bc03 Rewrite the FindCryptopp cmake module cleanly 2013-12-08 15:57:06 +01:00
Florent Le Coz a4c845ab6c Use the logger everywhere 2013-12-03 19:15:37 +01:00
Florent Le Coz 2662ed89e2 Add a logger class 2013-12-03 19:15:37 +01:00
Florent Le Coz 31e18e49b6 fsanitize=address requires libasan, that’s a useless dependency.
Also we cannot use both this feature and valgrind at the same time.
So, I’ll just specify this flag myself when I need it, this doesn’t
need to be there by default
2013-11-28 01:18:21 +01:00
Florent Le Coz b72908548d Let the user choose the poller to use through cmake POLLER option
Use ccmake, or cmake -i, or cmake -DPOLLER=EPOLL, for example
2013-11-21 00:35:15 +01:00
Florent Le Coz 641166b037 Link with pthread, required by cryptopp 2013-11-14 23:35:58 +01:00
Florent Le Coz 5817a95b5e Basic handling of modes, both ways 2013-11-12 23:48:10 +01:00
Florent Le Coz f0d9273da6 Add a Config module, and use it to get the password from a file 2013-11-10 20:47:11 +01:00
Florent Le Coz af4fc92c21 Fix the include of the config.h 2013-11-10 03:35:31 +01:00
Florent Le Coz 5cb81cace0 And actually use the values found by cmake 2013-11-10 03:29:12 +01:00
Florent Le Coz ef014f7ddf Properly detect iconv features to compile 2013-11-10 03:18:08 +01:00
Florent Le Coz 3d92360310 Use the Expat library directly instead of relying on expatpp
And now we handle namespaces, yay.
And a nice little test.
2013-11-10 02:30:22 +01:00
Florent Le Coz ccebe901d7 Check UTF-8 encoding, and convert strings to UTF-8
Handle conversion errors properly by inserting � instead.  Add a binary
header to provide portable way to write binary literals (I like them) Also
add a test file.  ref #2404
2013-11-09 06:01:47 +01:00
Florent Le Coz bf7b05ef72 Implement the Bridge class to translate between the two protocols
Add all useful classes as well: Jid, Iid, IrcChannel, IrcUser etc to
properly keep the informations about what we receive from the IRC server.

Only handle the MUC join stanza, and send the list of users in the IRC
channel to the XMPP user, and the IRC channel’s topic, for now.
2013-11-06 21:01:18 +01:00
Florent Le Coz f2f94618fc Add a basic XMPP component implementation, doing the authentication 2013-11-03 17:51:32 +01:00
Florent Le Coz 5bbd34a3a9 Add an XmppParser, and Stanza classes
Generate events on stanza and stream open/close.
Create Stanza and serialize them.

Note: XML namespaces are not handled yet.
2013-11-03 17:19:48 +01:00
Florent Le Coz 87aaacdb42 Rename libirc and libxmpp to irc and xmpp 2013-11-03 00:22:32 +01:00
Florent Le Coz e332d7a2c0 Add initial CMakeLists.txt that compiles the current code 2013-11-02 23:49:12 +01:00