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
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
_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