testing multiple physcial pcs
This commit is contained in:
parent
cd3aae9c1e
commit
c88ad2e73b
4
node.lua
4
node.lua
@ -6,8 +6,8 @@ node = multi:newNode{
|
||||
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
|
||||
name = nil, --"TESTNODE", -- default value
|
||||
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
|
||||
--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
|
||||
}
|
||||
function RemoteTest(a,b,c) -- a function that we will be executing remotely
|
||||
print("Yes I work!",a,b,c)
|
||||
|
||||
4
test.lua
4
test.lua
@ -7,8 +7,8 @@ nGLOBAL = require("multi.integration.networkManager").init()
|
||||
-- Act as a master node
|
||||
master = multi:newMaster{
|
||||
name = "Main", -- the name of the master
|
||||
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)
|
||||
--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)
|
||||
}
|
||||
-- Send to all the nodes that are connected to the master
|
||||
master.OnNodeConnected(function(node)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user