mirror of
https://github.com/Adorable-Catgirl/Zorya-NEO.git
synced 2024-11-27 12:48:07 +11:00
12 lines
242 B
Lua
12 lines
242 B
Lua
net.mtu = 4096
|
|
function net.lsend(to,vport,ldata)
|
|
local tdata = {}
|
|
for i = 1, ldata:len(), net.mtu do
|
|
tdata[#tdata+1] = ldata:sub(1,net.mtu)
|
|
ldata = ldata:sub(net.mtu+1)
|
|
end
|
|
for k,v in ipairs(tdata) do
|
|
net.send(to,vport,v)
|
|
end
|
|
end
|