C# 클래스 Brunet.Services.Coordinate.NCTunnelOverlap

Implements an ITunnelOverlap that uses NCService to make intelligent decisions about selecting tunnel overlap.
상속: Brunet.Tunnel.SimpleTunnelOverlap
파일 보기 프로젝트 열기: johnynek/brunet 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
_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