clix/raw.lua

changeset 152
c729365f1091
parent 151
5398623682d7
child 153
56546fb3429b
equal deleted inserted replaced
151:5398623682d7 152:c729365f1091
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 () conn:close() end, 111 onincoming = on_incoming, ondisconnect = function () conn:close() end, onreadtimeout = function () return true; 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