C# Класс Brunet.Connections.PolicyBasedConnectionOverlord

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.
Наследование: Brunet.Connections.ConnectionOverlord
Показать файл Открыть проект

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

Свойство Тип Описание
_active bool

Открытые методы

Метод Описание
ConnectionDesired ( Address addr ) : bool

Returns true if a connection to the address specified is desirable, false otherwise.

PolicyBasedConnectionOverlord ( Node node ) : System
Set ( Address addr ) : void

Express desire to connect to the remote address.

Unset ( Address addr ) : void

Express desire to end connections to the remote address.

Защищенные методы

Метод Описание
CheckForConnection ( Address addr ) : void

Checks the connection table for a connection. We call the appropriate abstract method based upon the result.

ConnectHandler ( object tab, EventArgs eargs ) : void

This method is called when there is connection added to the ConnectionTable.

ConnectTo ( Address addr ) : void
ConnectorEndHandler ( object o, EventArgs eargs ) : void

The connector has finished, if it succeeded, there should be some CTM, else the attempt failed.

DelayedConnectTo ( Address addr, bool fast ) : void

Perform delayed operations to prevent infinite loops due to eventing issues or another worker performing the same task.

DelayedRemove ( Address addr ) : void

Perform delayed operations so we don't end up unnecessarily churning through connections... the need for this should probably be evaluated.

DelayedRemove ( Address addr, string reason ) : void
DisconnectHandler ( object tab, EventArgs eargs ) : void

This method is called when there is a Disconnection from the ConnectionTable.

FailedConnectionAttempt ( Address addr ) : void

Called when an attempt to the address specified has failed.

LinkerEndHandler ( object o, EventArgs eargs ) : void

If we get here, the Linker has completed, we are either connected or need to reattempt the connection.

LostConnection ( Connection con ) : void

Called when a connection has been lost.

ObtainedConnection ( Connection con ) : void

Called when a connection has been formed.

Описание методов

CheckForConnection() защищенный Метод

Checks the connection table for a connection. We call the appropriate abstract method based upon the result.
protected CheckForConnection ( Address addr ) : void
addr Address
Результат void

ConnectHandler() защищенный Метод

This method is called when there is connection added to the ConnectionTable.
protected ConnectHandler ( object tab, EventArgs eargs ) : void
tab object
eargs System.EventArgs
Результат void

ConnectTo() защищенный Метод

protected ConnectTo ( Address addr ) : void
addr Address
Результат void

ConnectionDesired() абстрактный публичный Метод

Returns true if a connection to the address specified is desirable, false otherwise.
abstract public ConnectionDesired ( Address addr ) : bool
addr Address
Результат bool

ConnectorEndHandler() защищенный Метод

The connector has finished, if it succeeded, there should be some CTM, else the attempt failed.
protected ConnectorEndHandler ( object o, EventArgs eargs ) : void
o object
eargs System.EventArgs
Результат void

DelayedConnectTo() защищенный Метод

Perform delayed operations to prevent infinite loops due to eventing issues or another worker performing the same task.
protected DelayedConnectTo ( Address addr, bool fast ) : void
addr Address
fast bool
Результат void

DelayedRemove() защищенный Метод

Perform delayed operations so we don't end up unnecessarily churning through connections... the need for this should probably be evaluated.
protected DelayedRemove ( Address addr ) : void
addr Address
Результат void

DelayedRemove() защищенный Метод

protected DelayedRemove ( Address addr, string reason ) : void
addr Address
reason string
Результат void

DisconnectHandler() защищенный Метод

This method is called when there is a Disconnection from the ConnectionTable.
protected DisconnectHandler ( object tab, EventArgs eargs ) : void
tab object
eargs EventArgs
Результат void

FailedConnectionAttempt() абстрактный защищенный Метод

Called when an attempt to the address specified has failed.
abstract protected FailedConnectionAttempt ( Address addr ) : void
addr Address
Результат void

LinkerEndHandler() защищенный Метод

If we get here, the Linker has completed, we are either connected or need to reattempt the connection.
protected LinkerEndHandler ( object o, EventArgs eargs ) : void
o object
eargs EventArgs
Результат void

LostConnection() абстрактный защищенный Метод

Called when a connection has been lost.
abstract protected LostConnection ( Connection con ) : void
con Connection
Результат void

ObtainedConnection() абстрактный защищенный Метод

Called when a connection has been formed.
abstract protected ObtainedConnection ( Connection con ) : void
con Connection
Результат void

PolicyBasedConnectionOverlord() публичный Метод

public PolicyBasedConnectionOverlord ( Node node ) : System
node Node
Результат System

Set() абстрактный публичный Метод

Express desire to connect to the remote address.
abstract public Set ( Address addr ) : void
addr Address
Результат void

Unset() абстрактный публичный Метод

Express desire to end connections to the remote address.
abstract public Unset ( Address addr ) : void
addr Address
Результат void

Описание свойств

_active защищенное свойство

protected bool _active
Результат bool