C# 클래스 Brunet.Relay.SimpleRelayOverlap

상속: IRelayOverlap
파일 보기 프로젝트 열기: pstjuste/brunet 1 사용 예제들

공개 메소드들

메소드 설명
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