func (cm *ConnectionManager) GetProtocols() []protocol.ID {
	cm.protocolConfigurationLock.RLock()
	defer cm.protocolConfigurationLock.RUnlock()

	protos := make([]protocol.ID, 0, len(cm.protocolConfiguration))
	for p := range cm.protocolConfiguration {
		protos = append(protos, p)
	}
	return protos
}
// GetProtocols gets protocols handled by this connection manager.
GetProtocols gets protocols handled by this connection manager.
// GetProtocols gets protocols handled by this connection manager .
func (cm *ConnectionManager) GetProtocols() []protocol.ID {
	cm.protocolConfigurationLock.RLock()
	defer cm.protocolConfigurationLock.RUnlock()
	protos := make([]protocol.ID, 0, len(cm.protocolConfiguration))
	for p := range cm.protocolConfiguration {
		protos = append(protos, p)
	}
	return protos
}
func ( cm * ConnectionManager ) GetProtocols ( ) [ ] protocol . ID { cm . protocolConfigurationLock . RLock ( ) defer cm . protocolConfigurationLock . RUnlock ( ) protos := make ( [ ] protocol . ID , 0 , len ( cm . protocolConfiguration ) ) for p := range cm . protocolConfiguration { protos = append ( protos , p ) } return protos }
GetProtocols gets protocols handled by this connection manager.
GetProtocols gets protocols handled by this connection manager .