From 40c6f47f4d18824c185ad110177a89c201de753d Mon Sep 17 00:00:00 2001 From: XeonSquared Date: Thu, 18 Apr 2019 13:24:35 +1000 Subject: [PATCH] make it possible to rsend a packet and specify the packet ID --- OpenOS/usr/lib/minitel.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/OpenOS/usr/lib/minitel.lua b/OpenOS/usr/lib/minitel.lua index c180b48..cd06333 100644 --- a/OpenOS/usr/lib/minitel.lua +++ b/OpenOS/usr/lib/minitel.lua @@ -19,8 +19,8 @@ function net.usend(to,port,data,npID) computer.pushSignal("net_send",0,to,port,data,npID) end -function net.rsend(to,port,data,block) - local pid, stime = net.genPacketID(), computer.uptime() + net.streamdelay +function net.rsend(to,port,data,block,npID) + local pid, stime = npID or net.genPacketID(), computer.uptime() + net.streamdelay computer.pushSignal("net_send",1,to,port,data,pid) if block then return false end repeat