Comparison

main.lua @ 145:fbb3a4ff9cf1 s2s

dialback keys now verified
author Matthew Wild <mwild1@gmail.com>
date Fri, 24 Oct 2008 03:06:55 +0100
parent 99:ba08b8a4eeef
child 150:d09b8a1ab046
comparison
equal deleted inserted replaced
144:ed78c1a0401e 145:fbb3a4ff9cf1
52 52
53 local protected_handler = function (conn, data, err) local success, ret = pcall(handler, conn, data, err); if not success then print("ERROR on "..tostring(conn)..": "..ret); conn:close(); end end; 53 local protected_handler = function (conn, data, err) local success, ret = pcall(handler, conn, data, err); if not success then print("ERROR on "..tostring(conn)..": "..ret); conn:close(); end end;
54 local protected_disconnect = function (conn, err) local success, ret = pcall(disconnect, conn, err); if not success then print("ERROR on "..tostring(conn).." disconnect: "..ret); conn:close(); end end; 54 local protected_disconnect = function (conn, err) local success, ret = pcall(disconnect, conn, err); if not success then print("ERROR on "..tostring(conn).." disconnect: "..ret); conn:close(); end end;
55 55
56 start("xmppclient", { ssl = ssl_ctx }) 56 start("xmppclient", { ssl = ssl_ctx })
57 start("xmppserver", { ssl = ssl_ctx })
57 58
58 server.loop(); 59 server.loop();