Node.setNetworkMaster

Sets the node's network master to the peer with the given peer ID. The network master is the peer that has authority over the node on the network. Useful in conjunction with the master and puppet keywords. Inherited from the parent node by default, which ultimately defaults to peer ID 1 (the server). If recursive, the given peer is recursively set as the master for all children of this node.

struct Node
@nogc nothrow
void
setNetworkMaster
(
in long id
,
in bool recursive = true
)

Meta