17 lines
352 B
Lua
17 lines
352 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 data from lua "..data.. ip..port)
|
|
end
|
|
|
|
|
|
function OnClientDisconnect(ip,port)
|
|
showdata("client leave from lua " .. ip..port)
|
|
end
|
|
|