1
0
mirror of https://github.com/ShadowKatStudios/OC-Minitel.git synced 2024-12-27 02:38:07 +11:00
OC-Minitel/Embedded/microtel/microtel-4.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