canConnect method

bool canConnect(
  1. PeerId src,
  2. PeerId dst
)

Checks if a peer can make a connection.

Implementation

bool canConnect(PeerId src, PeerId dst) {
  return _connections < maxConnections;
}