C# Class Brunet.Services.Coordinate.NCTunnelOverlap

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

Protected Properties

Property Type Description
_ncservice NCService

Public Methods

Method 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

Protected Methods

Method 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 method

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

EvaluatePotentialOverlap() public method

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

GetClosest() protected method

Returns the 4 oldest connections.
protected GetClosest ( ConnectionList cons ) : List
cons ConnectionList
return List

GetClosest() protected method

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

GetSyncMessage() public method

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
return IDictionary

NCTunnelOverlap() public method

public NCTunnelOverlap ( NCService ncservice ) : Brunet.Tunnel
ncservice NCService
return Brunet.Tunnel

Property Details

_ncservice protected_oe property

protected NCService,Brunet.Services.Coordinate _ncservice
return NCService