C# Класс Brunet.Services.Coordinate.NCTunnelOverlap

Implements an ITunnelOverlap that uses NCService to make intelligent decisions about selecting tunnel overlap.
Наследование: Brunet.Tunnel.SimpleTunnelOverlap
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
_ncservice NCService

Открытые методы

Метод Описание
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

Защищенные методы

Метод Описание
GetClosest ( ConnectionList cons ) : List

Returns the 4 oldest connections.

GetClosest ( List cons ) : List

Returns at most the 4 closest addresses in order.

Описание методов

EvaluateOverlap() публичный Метод

Returns the four fastest in the overlap.
public EvaluateOverlap ( ConnectionList cons, IDictionary msg ) : List
cons ConnectionList
msg IDictionary
Результат List

EvaluatePotentialOverlap() публичный Метод

Always returns the fastest non-tunnel, overlapping address.
public EvaluatePotentialOverlap ( IDictionary msg ) : Address
msg IDictionary
Результат Address

GetClosest() защищенный Метод

Returns the 4 oldest connections.
protected GetClosest ( ConnectionList cons ) : List
cons ConnectionList
Результат List

GetClosest() защищенный Метод

Returns at most the 4 closest addresses in order.
protected GetClosest ( List cons ) : List
cons List
Результат List

GetSyncMessage() публичный Метод

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
Результат IDictionary

NCTunnelOverlap() публичный Метод

public NCTunnelOverlap ( NCService ncservice ) : Brunet.Tunnel
ncservice NCService
Результат Brunet.Tunnel

Описание свойств

_ncservice защищенное свойство

protected NCService,Brunet.Services.Coordinate _ncservice
Результат NCService