Commit Graph
9 Commits
Author SHA1 Message Date
Florent Le Coz bafde1af9f Stanza:get_name() only returns the name of the tag, without the namespace 2014-05-15 00:32:31 +02:00
Florent Le Coz f00f5c3ffb Do not use exceptions for missing tags, improvement in code simplicity 2014-04-11 23:06:13 +02:00
Florent Le Coz a4c845ab6c Use the logger everywhere 2013-12-03 19:15:37 +01:00
Florent Le Coz e6f20d3c0f Implement IRC format to xhtml-im conversion
The generated XML is very verbose because each IRC formatting tag makes us
close a <span/> element and reopen it with the new style applied.  However,
this works quite well and is easy to implement.
2013-11-28 01:18:26 +01:00
Florent Le Coz 959291afe6 Set the parent of a node passed to add_child, and return it for conveniance 2013-11-27 00:37:23 +01:00
Florent Le Coz 2be4811d14 Unescape XML before sending messages over IRC 2013-11-11 00:29:44 +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 a418b6ed5d Send and receive messages
Also correctly respond to PING with the id, escape some XML content, but not
always
2013-11-07 01:53:09 +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