// GetPeers returns an array containing all connected client Peers
GetPeers returns an array containing all connected client Peers
// GetPeers returns an array containing all connected client Peers
func (l *Listener) GetPeers() []*Peer {
	l.mu.RLock()
	defer l.mu.RUnlock()
	var r []*Peer
	for p := range l.peers {
		r = append(r, p)
	}
	return r
}
func ( l * Listener ) GetPeers ( ) [ ] * Peer { l . mu . RLock ( ) defer l . mu . RUnlock ( ) var r [ ] * Peer for p := range l . peers { r = append ( r , p ) } return r }
GetPeers returns an array containing all connected client Peers
GetPeers returns an array containing all connected client Peers