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 |