mirror of
https://github.com/ShadowKatStudios/OC-Minitel.git
synced 2024-11-23 10:38:05 +11:00
make it possible to rsend a packet and specify the packet ID
This commit is contained in:
parent
e579f1f567
commit
40c6f47f4d
@ -19,8 +19,8 @@ function net.usend(to,port,data,npID)
|
|||||||
computer.pushSignal("net_send",0,to,port,data,npID)
|
computer.pushSignal("net_send",0,to,port,data,npID)
|
||||||
end
|
end
|
||||||
|
|
||||||
function net.rsend(to,port,data,block)
|
function net.rsend(to,port,data,block,npID)
|
||||||
local pid, stime = net.genPacketID(), computer.uptime() + net.streamdelay
|
local pid, stime = npID or net.genPacketID(), computer.uptime() + net.streamdelay
|
||||||
computer.pushSignal("net_send",1,to,port,data,pid)
|
computer.pushSignal("net_send",1,to,port,data,pid)
|
||||||
if block then return false end
|
if block then return false end
|
||||||
repeat
|
repeat
|
||||||
|
Loading…
Reference in New Issue
Block a user