Brunet.Services.ConnectionHandler.GetConnection C# (CSharp) Method

GetConnection() protected method

protected GetConnection ( Address addr ) : Connection
addr Address
return Brunet.Connections.Connection
    protected Connection GetConnection(Address addr)
    {
      ConnectionList cons = _node.ConnectionTable.GetConnections(ConnectionType.Structured);
      int index = cons.IndexOf(addr);
      if(index < 0) {
        return null;
      }
      return cons[index];
    }