// get a list of acive peers names
get a list of acive peers names
// get a list of acive peers names
func (twoway *Bilateral) ActiveConnections() []string {
	active := make([]string, 0, len(twoway.connections))
	for name, c := range twoway.connections {
		if stateConnected == c.state || stateCheck == c.state || stateServing == c.state {
			active = append(active, name)
		}
	}
	return active
}
func ( twoway * Bilateral ) ActiveConnections ( ) [ ] string { active := make ( [ ] string , 0 , len ( twoway . connections ) ) for name , c := range twoway . connections { if stateConnected == c . state || stateCheck == c . state || stateServing == c . state { active = append ( active , name ) } } return active }
get a list of acive peers names
get a list of acive peers names