C# Class Brunet.Services.Coordinate.NCTunnelOverlap

Implements an ITunnelOverlap that uses NCService to make intelligent decisions about selecting tunnel overlap.
Inheritance: Brunet.Tunnel.SimpleTunnelOverlap
Afficher le fichier Open project: johnynek/brunet Class Usage Examples

Protected Properties

Свойство Type Description
_ncservice NCService

Méthodes publiques

Méthode Description
EvaluateOverlap ( ConnectionList cons, IDictionary msg ) : List

Returns the four fastest in the overlap.

EvaluatePotentialOverlap ( IDictionary msg ) : Address

Always returns the fastest non-tunnel, overlapping address.

GetSyncMessage ( IList current_overlap, Address local_addr, ConnectionList cons ) : IDictionary

Returns a Tunnel Sync message containing all overlap and then the four fastest (if not included in the overlap.

NCTunnelOverlap ( NCService ncservice ) : Brunet.Tunnel

Méthodes protégées

Méthode Description
GetClosest ( ConnectionList cons ) : List

Returns the 4 oldest connections.

GetClosest ( List cons ) : List

Returns at most the 4 closest addresses in order.

Method Details

EvaluateOverlap() public méthode

Returns the four fastest in the overlap.
public EvaluateOverlap ( ConnectionList cons, IDictionary msg ) : List
cons ConnectionList
msg IDictionary
Résultat List

EvaluatePotentialOverlap() public méthode

Always returns the fastest non-tunnel, overlapping address.
public EvaluatePotentialOverlap ( IDictionary msg ) : Address
msg IDictionary
Résultat Address

GetClosest() protected méthode

Returns the 4 oldest connections.
protected GetClosest ( ConnectionList cons ) : List
cons ConnectionList
Résultat List

GetClosest() protected méthode

Returns at most the 4 closest addresses in order.
protected GetClosest ( List cons ) : List
cons List
Résultat List

GetSyncMessage() public méthode

Returns a Tunnel Sync message containing all overlap and then the four fastest (if not included in the overlap.
public GetSyncMessage ( IList current_overlap, Address local_addr, ConnectionList cons ) : IDictionary
current_overlap IList
local_addr Address
cons ConnectionList
Résultat IDictionary

NCTunnelOverlap() public méthode

public NCTunnelOverlap ( NCService ncservice ) : Brunet.Tunnel
ncservice NCService
Résultat Brunet.Tunnel

Property Details

_ncservice protected_oe property

protected NCService,Brunet.Services.Coordinate _ncservice
Résultat NCService