C# 클래스 Brunet.Tunnel.OverlapConnectionOverlord

A CO used to create Overlap so that tunnels can be made between two peers that cannot directly connect.
상속: Brunet.Connections.ConnectionOverlord
파일 보기 프로젝트 열기: johnynek/brunet 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
MAIN_TYPE ConnectionType
STRUC_OVERLAP string

보호된 프로퍼티들

프로퍼티 타입 설명
_active bool
_address_to_callback WaitCallback>.Dictionary
_sync object
_ta_auth Brunet.Transport.TAAuthorizer

공개 메소드들

메소드 설명
Activate ( ) : void

We don't do anything here...

ConnectTo ( Address target, WaitCallback wcb ) : void

Attempt to connect to a remote overlay address and notify the caller when the process has completed, successful or not.

OverlapConnectionOverlord ( Node node ) : System

보호된 메소드들

메소드 설명
ConnectorEndHandler ( object o, EventArgs eargs ) : void

If we get a response, its handled by the base.HandleCtmResponse. If we don't get a response, we should finish this attempt to connect.

FinishConnectTo ( Address target ) : void

Cleans up state and calls the callback so that it can determine by ConnectionTable inspection if the connection was successful.

LinkerEndHandler ( object o, EventArgs eargs ) : void

At the end of the linking process, we are either connected or not connected to the remote endpoint, so we can notify the caller of the result.

메소드 상세

Activate() 공개 메소드

We don't do anything here...
public Activate ( ) : void
리턴 void

ConnectTo() 공개 메소드

Attempt to connect to a remote overlay address and notify the caller when the process has completed, successful or not.
public ConnectTo ( Address target, WaitCallback wcb ) : void
target Address
wcb WaitCallback
리턴 void

ConnectorEndHandler() 보호된 메소드

If we get a response, its handled by the base.HandleCtmResponse. If we don't get a response, we should finish this attempt to connect.
protected ConnectorEndHandler ( object o, EventArgs eargs ) : void
o object
eargs System.EventArgs
리턴 void

FinishConnectTo() 보호된 메소드

Cleans up state and calls the callback so that it can determine by ConnectionTable inspection if the connection was successful.
protected FinishConnectTo ( Address target ) : void
target Address
리턴 void

LinkerEndHandler() 보호된 메소드

At the end of the linking process, we are either connected or not connected to the remote endpoint, so we can notify the caller of the result.
protected LinkerEndHandler ( object o, EventArgs eargs ) : void
o object
eargs System.EventArgs
리턴 void

OverlapConnectionOverlord() 공개 메소드

public OverlapConnectionOverlord ( Node node ) : System
node Node
리턴 System

프로퍼티 상세

MAIN_TYPE 공개적으로 정적으로 프로퍼티

public static ConnectionType MAIN_TYPE
리턴 ConnectionType

STRUC_OVERLAP 공개적으로 정적으로 프로퍼티

public static string STRUC_OVERLAP
리턴 string

_active 보호되어 있는 프로퍼티

protected bool _active
리턴 bool

_address_to_callback 보호되어 있는 프로퍼티

protected Dictionary _address_to_callback
리턴 WaitCallback>.Dictionary

_sync 보호되어 있는 프로퍼티

protected object _sync
리턴 object

_ta_auth 보호되어 있는 정적으로 프로퍼티

protected static TAAuthorizer,Brunet.Transport _ta_auth
리턴 Brunet.Transport.TAAuthorizer