C# 클래스 Brunet.Connections.OnDemandConnectionOverlord

Creates new connections ... on demand, when an address has data being sent to it, the method Active should be calld. An internal internal timer (FuzzyTimer) automatically removes inactive connections.
상속: PolicyBasedConnectionOverlord
파일 보기 프로젝트 열기: pstjuste/brunet 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
_cache bool>.TimeBasedCache
_main_type ConnectionType
_ta_auth Brunet.Transport.TAAuthorizer

공개 메소드들

메소드 설명
ConnectionDesired ( Address addr ) : bool
OnDemandConnectionOverlord ( Node node ) : System
Set ( Address addr ) : void
Stop ( ) : void

Need to call stop in order to stop the recycling of the cache.

Unset ( Address addr ) : void

보호된 메소드들

메소드 설명
FailedConnectionAttempt ( Address addr ) : void
HandleEviction ( object sender, bool>.TimeBasedCache ea ) : void

When we get an eviction, we need to consider disconnecting the connection.

LostConnection ( Connection con ) : void
ObtainedConnection ( Connection con ) : void

메소드 상세

ConnectionDesired() 공개 메소드

public ConnectionDesired ( Address addr ) : bool
addr Address
리턴 bool

FailedConnectionAttempt() 보호된 메소드

protected FailedConnectionAttempt ( Address addr ) : void
addr Address
리턴 void

HandleEviction() 보호된 메소드

When we get an eviction, we need to consider disconnecting the connection.
protected HandleEviction ( object sender, bool>.TimeBasedCache ea ) : void
sender object
ea bool>.TimeBasedCache
리턴 void

LostConnection() 보호된 메소드

protected LostConnection ( Connection con ) : void
con Connection
리턴 void

ObtainedConnection() 보호된 메소드

protected ObtainedConnection ( Connection con ) : void
con Connection
리턴 void

OnDemandConnectionOverlord() 공개 메소드

public OnDemandConnectionOverlord ( Node node ) : System
node Node
리턴 System

Set() 공개 메소드

public Set ( Address addr ) : void
addr Address
리턴 void

Stop() 공개 메소드

Need to call stop in order to stop the recycling of the cache.
public Stop ( ) : void
리턴 void

Unset() 공개 메소드

public Unset ( Address addr ) : void
addr Address
리턴 void

프로퍼티 상세

_cache 보호되어 있는 프로퍼티

protected TimeBasedCache _cache
리턴 bool>.TimeBasedCache

_main_type 보호되어 있는 정적으로 프로퍼티

protected static ConnectionType _main_type
리턴 ConnectionType

_ta_auth 보호되어 있는 정적으로 프로퍼티

protected static TAAuthorizer,Brunet.Transport _ta_auth
리턴 Brunet.Transport.TAAuthorizer