C# Class Brunet.Tunnel.OverlapConnectionOverlord

A CO used to create Overlap so that tunnels can be made between two peers that cannot directly connect.
Inheritance: Brunet.Connections.ConnectionOverlord
Mostra file Open project: johnynek/brunet Class Usage Examples

Public Properties

Property Type Description
MAIN_TYPE ConnectionType
STRUC_OVERLAP string

Protected Properties

Property Type Description
_active bool
_address_to_callback WaitCallback>.Dictionary
_sync object
_ta_auth Brunet.Transport.TAAuthorizer

Public Methods

Method Description
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

Protected Methods

Method Description
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.

Method Details

Activate() public method

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

ConnectTo() public method

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
return void

ConnectorEndHandler() protected method

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
return void

FinishConnectTo() protected method

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
return void

LinkerEndHandler() protected method

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
return void

OverlapConnectionOverlord() public method

public OverlapConnectionOverlord ( Node node ) : System
node Node
return System

Property Details

MAIN_TYPE public_oe static_oe property

public static ConnectionType MAIN_TYPE
return ConnectionType

STRUC_OVERLAP public_oe static_oe property

public static string STRUC_OVERLAP
return string

_active protected_oe property

protected bool _active
return bool

_address_to_callback protected_oe property

protected Dictionary _address_to_callback
return WaitCallback>.Dictionary

_sync protected_oe property

protected object _sync
return object

_ta_auth protected_oe static_oe property

protected static TAAuthorizer,Brunet.Transport _ta_auth
return Brunet.Transport.TAAuthorizer