mirror of
https://github.com/ShadowKatStudios/OC-Minitel.git
synced 2024-11-26 03:48:06 +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
|