This commit is contained in:
Adam Ierymenko 2019-09-26 09:34:31 -07:00
commit 7061f13b24
No known key found for this signature in database
GPG key ID: C8877CF2D7A5D7F3
10 changed files with 229 additions and 43 deletions

View file

@ -194,6 +194,13 @@ func (n *Network) Config() NetworkConfig {
// SetLocalSettings modifies this network's local settings
func (n *Network) SetLocalSettings(ls *NetworkLocalSettings) { n.updateConfig(nil, ls) }
// LocalSettings gets this network's current local settings
func (n *Network) LocalSettings() NetworkLocalSettings {
n.configLock.RLock()
defer n.configLock.RUnlock()
return n.settings
}
// MulticastSubscribe subscribes to a multicast group
func (n *Network) MulticastSubscribe(mg *MulticastGroup) {
n.node.log.Printf("%.16x joined multicast group %s", mg.String())