Node manager working

A few things are left to do. Queues and adding support for some of the system threaded objects that exist.
This commit is contained in:
2018-06-25 21:25:59 -04:00
parent 138d61de85
commit 979a6d8674
5 changed files with 112 additions and 38 deletions
+5 -2
View File
@@ -31,13 +31,16 @@ end
-- Internal queue system for network queues
local queue = {}
queue.__index = queue
function queue:newQueue()
function queue:newQueue(name,master)
if not name then error("You must include a name in order to create a queue!") end
local c = {}
c.name = name
c.master = master
setmetatable(c,self)
return c
end
function queue:push(data)
table.insert(self,packData(data))
master:doToAll(char(CMD_QUEUE)..packData(data))
end
function queue:raw_push(data) -- Internal usage only
table.insert(self,data)