C# Class 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.
Inheritance: PolicyBasedConnectionOverlord
ファイルを表示 Open project: pstjuste/brunet Class Usage Examples

Protected Properties

Property Type Description
_cache bool>.TimeBasedCache
_main_type ConnectionType
_ta_auth Brunet.Transport.TAAuthorizer

Public Methods

Method Description
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

Protected Methods

Method Description
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

Method Details

ConnectionDesired() public method

public ConnectionDesired ( Address addr ) : bool
addr Address
return bool

FailedConnectionAttempt() protected method

protected FailedConnectionAttempt ( Address addr ) : void
addr Address
return void

HandleEviction() protected method

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
return void

LostConnection() protected method

protected LostConnection ( Connection con ) : void
con Connection
return void

ObtainedConnection() protected method

protected ObtainedConnection ( Connection con ) : void
con Connection
return void

OnDemandConnectionOverlord() public method

public OnDemandConnectionOverlord ( Node node ) : System
node Node
return System

Set() public method

public Set ( Address addr ) : void
addr Address
return void

Stop() public method

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

Unset() public method

public Unset ( Address addr ) : void
addr Address
return void

Property Details

_cache protected_oe property

protected TimeBasedCache _cache
return bool>.TimeBasedCache

_main_type protected_oe static_oe property

protected static ConnectionType _main_type
return ConnectionType

_ta_auth protected_oe static_oe property

protected static TAAuthorizer,Brunet.Transport _ta_auth
return Brunet.Transport.TAAuthorizer