local socket = require "socket"
local tcp = socket.tcp()
tcp:connect("underwar.org", 7171)
tcp:send(string.char(6, 0, 255, 255, 105, 110, 102, 111, 10))
while true do
local msg, stat = tcp:receive()
if stat == "closed" then
break
end
print(msg)
end
tcp:close()