clix/raw.lua

changeset 151
5398623682d7
parent 150
af9b9acb10d6
child 152
c729365f1091
equal deleted inserted replaced
150:af9b9acb10d6 151:5398623682d7
106 if not opts.interactive then 106 if not opts.interactive then
107 conn:close(); 107 conn:close();
108 end 108 end
109 end 109 end
110 stdin = require "net.server".wrapclient(stdin, "stdin", 0, { 110 stdin = require "net.server".wrapclient(stdin, "stdin", 0, {
111 onincoming = on_incoming, ondisconnect = function () end 111 onincoming = on_incoming, ondisconnect = function () conn:close() end,
112 }, "*l"); 112 }, "*l");
113 else 113 else
114 if not send_xml then 114 if not send_xml then
115 send_xml = table.concat(args, " "); 115 send_xml = table.concat(args, " ");
116 end 116 end

mercurial