1
0
mirror of https://github.com/Adorable-Catgirl/Zorya-NEO.git synced 2024-11-27 12:48:07 +11:00
Zorya-NEO/lib/net_minitel/microtel/microtel-4.lua
2020-01-08 23:01:35 -05:00

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