require("string") local file = io.open("writetest.txt", "w+") function OnNewClient(ip,port) showdata("on new client from lua " .. ip..port) end function OnClientRecvData(data,ip,port) showdata("client recieve 123 from lua "..data.. ip..port.."\r\n
") end function OnClientDisconnect(ip,port) showdata("\r\nclient leave from lua " .. ip..port.."\r\n") end