1 line
375 B
Lua
1 line
375 B
Lua
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</br>")
|
|
end
|
|
|
|
|
|
function OnClientDisconnect(ip,port)
|
|
showdata("\r\nclient leave from lua " .. ip..port.."\r\n")
|
|
end
|