testing multiple physcial pcs

This commit is contained in:
Ryan Ward 2018-07-02 20:25:21 -04:00
parent cd3aae9c1e
commit c88ad2e73b
2 changed files with 4 additions and 4 deletions

View File

@ -6,8 +6,8 @@ node = multi:newNode{
crossTalk = false, -- default value, allows nodes to talk to eachother. WIP NOT READY YET! crossTalk = false, -- default value, allows nodes to talk to eachother. WIP NOT READY YET!
allowRemoteRegistering = true, -- allows you to register functions from the master on the node, default is false allowRemoteRegistering = true, -- allows you to register functions from the master on the node, default is false
name = nil, --"TESTNODE", -- default value name = nil, --"TESTNODE", -- default value
noBroadCast = true, -- if using the node manager, set this to true to prevent the node from broadcasting --noBroadCast = true, -- if using the node manager, set this to true to prevent the node from broadcasting
managerDetails = {"localhost",12345}, -- connects to the node manager if one exists --managerDetails = {"localhost",12345}, -- connects to the node manager if one exists
} }
function RemoteTest(a,b,c) -- a function that we will be executing remotely function RemoteTest(a,b,c) -- a function that we will be executing remotely
print("Yes I work!",a,b,c) print("Yes I work!",a,b,c)

View File

@ -7,8 +7,8 @@ nGLOBAL = require("multi.integration.networkManager").init()
-- Act as a master node -- Act as a master node
master = multi:newMaster{ master = multi:newMaster{
name = "Main", -- the name of the master name = "Main", -- the name of the master
noBroadCast = true, -- if using the node manager, set this to true to avoid double connections --noBroadCast = true, -- if using the node manager, set this to true to avoid double connections
managerDetails = {"localhost",12345}, -- the details to connect to the node manager (ip,port) --managerDetails = {"localhost",12345}, -- the details to connect to the node manager (ip,port)
} }
-- Send to all the nodes that are connected to the master -- Send to all the nodes that are connected to the master
master.OnNodeConnected(function(node) master.OnNodeConnected(function(node)