1
0
mirror of https://github.com/Adorable-Catgirl/Zorya-NEO.git synced 2024-11-30 22:28:06 +11:00
Zorya-NEO/lib/net_minitel/microtel/microtel-4.lua

12 lines
242 B
Lua
Raw Normal View History

2020-01-09 15:01:35 +11:00
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