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
파일 보기 프로젝트 열기: pstjuste/brunet

보호된 프로퍼티들

프로퍼티 타입 설명
_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