C# Класс Brunet.Relay.SimpleRelayOverlap

Наследование: IRelayOverlap
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
EvaluateOverlap ( ConnectionList cons, IDictionary msg ) : List

Returns the oldest 4 addresses in the overlap.

EvaluatePotentialOverlap ( IDictionary msg ) : Address

Always returns the oldest non-tunnel address.

FindOverlap ( RelayTransportAddress ta, ConnectionList cons ) : List

Attempt to find the overlap in a remote RelayTransportAddress and our local node. This will be used to help communicate with a new tunneled peer.

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

Returns a Relay Sync message containing up to 40 addresses first starting with previous overlap followed by new potential connections for overlap.

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

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

Returns the 4 oldest connections.

GetOldest ( List cons ) : List

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

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

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

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

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

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

Attempt to find the overlap in a remote RelayTransportAddress and our local node. This will be used to help communicate with a new tunneled peer.
public FindOverlap ( RelayTransportAddress ta, ConnectionList cons ) : List
ta RelayTransportAddress
cons ConnectionList
Результат List

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

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

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

protected GetOldest ( List cons ) : List
cons List
Результат List

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

Returns a Relay Sync message containing up to 40 addresses first starting with previous overlap followed by new potential connections for overlap.
public GetSyncMessage ( IList current_overlap, Address local_addr, ConnectionList cons ) : IDictionary
current_overlap IList
local_addr Address
cons ConnectionList
Результат IDictionary