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
Afficher le fichier Open project: pstjuste/brunet Class Usage Examples

Protected Properties

Свойство Type Description
_cache bool>.TimeBasedCache
_main_type ConnectionType
_ta_auth Brunet.Transport.TAAuthorizer

Méthodes publiques

Méthode 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

Méthodes protégées

Méthode 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 méthode

public ConnectionDesired ( Address addr ) : bool
addr Address
Résultat bool

FailedConnectionAttempt() protected méthode

protected FailedConnectionAttempt ( Address addr ) : void
addr Address
Résultat void

HandleEviction() protected méthode

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
Résultat void

LostConnection() protected méthode

protected LostConnection ( Connection con ) : void
con Connection
Résultat void

ObtainedConnection() protected méthode

protected ObtainedConnection ( Connection con ) : void
con Connection
Résultat void

OnDemandConnectionOverlord() public méthode

public OnDemandConnectionOverlord ( Node node ) : System
node Node
Résultat System

Set() public méthode

public Set ( Address addr ) : void
addr Address
Résultat void

Stop() public méthode

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

Unset() public méthode

public Unset ( Address addr ) : void
addr Address
Résultat void

Property Details

_cache protected_oe property

protected TimeBasedCache _cache
Résultat bool>.TimeBasedCache

_main_type protected_oe static_oe property

protected static ConnectionType _main_type
Résultat ConnectionType

_ta_auth protected_oe static_oe property

protected static TAAuthorizer,Brunet.Transport _ta_auth
Résultat Brunet.Transport.TAAuthorizer