require("string")localfile=io.open("writetest.txt","w+")functionOnNewClient(ip,port)showdata("on new client from lua "..ip..port)endfunctionOnClientRecvData(data,ip,port)showdata("client recieve data from lua "..data..ip..port)endfunctionOnClientDisconnect(ip,port)showdata("client leave from lua "..ip..port)end