From 6db3d039b3d8d55c9e03ebdc776cf1a23dd826c2 Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Thu, 2 Oct 2008 01:08:58 +0100 Subject: SASL! (but before you get too excited, no resource binding yet. And yes, there are still plenty of rough edges to the code...) ((eg. must move out of xmlhandlers.lua o_O )) --- net/connhandlers.lua | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 net/connhandlers.lua (limited to 'net') diff --git a/net/connhandlers.lua b/net/connhandlers.lua new file mode 100644 index 00000000..493f1946 --- /dev/null +++ b/net/connhandlers.lua @@ -0,0 +1,16 @@ + +local lxp = require "lxp" +local init_xmlhandlers = require "core.xmlhandlers" + +module "connhandlers" + + +function new(name, session) + if name == "xmpp-client" then + local parser = lxp.new(init_xmlhandlers(session), ":"); + local parse = parser.parse; + return { data = function (self, data) return parse(parser, data); end, parser = parser } + end +end + +return _M; \ No newline at end of file -- cgit v1.2.3