OC-MultICE/modules/net/fget.lua

16 lines
266 B
Lua

function fget(addr,path,port)
local port,S = port or "fget",""
ns(addr,port,path)
while true do
if ev[1] == "net_msg" and ev[2] == addr and ev[3] == port then
if ev[4] == "." then
break
else
S=S..ev[4]
end
end
C.yield()
end
return S
end