// Get list of connection addresses.
Get list of connection addresses.
// Get list of connection addresses .
func (node *Node) Connections() []string {
	node.mutex.Lock()
	defer node.mutex.Unlock()
	var list []string
	for addr := range node.connections {
		list = append(list, addr)
	}
	return list
}
func ( node * Node ) Connections ( ) [ ] string { node . mutex . Lock ( ) defer node . mutex . Unlock ( ) var list [ ] string for addr := range node . connections { list = append ( list , addr ) } return list }
Get list of connection addresses.
Get list of connection addresses .