C# Class Brunet.Services.Dht.DhtDiscovery

Use another nodes Dht to exchange SubringTransportAddresses.
Inheritance: Brunet.Transport.Discovery
Show file Open project: pstjuste/brunet Class Usage Examples

Protected Properties

Property Type Description
_dht IDht
_dht_proxy RpcDhtProxy
_node Brunet.Symphony.StructuredNode
_ongoing int
_p2p_address Brunet.Util.MemBlock
_private_dht_key Brunet.Util.MemBlock
_shared_namespace string
_steady_state int

Public Methods

Method Description
BeginFindingTAs ( ) : bool
DhtDiscovery ( StructuredNode node, IDht dht, string shared_namespace, RpcDhtProxy dht_proxy ) : Brunet.Connections

Uses the Dht for the bootstrap problem.

EndFindingTAs ( ) : bool
Stop ( ) : bool

Stops publishing using the dht proxy.

Protected Methods

Method Description
CheckAndUpdateRemoteTAs ( List tas ) : void

Make sure there are no entries in the Dht, who we should be connected to, but aren't.

SeekTAs ( System.DateTime now ) : void

Method Details

BeginFindingTAs() public method

public BeginFindingTAs ( ) : bool
return bool

CheckAndUpdateRemoteTAs() protected method

Make sure there are no entries in the Dht, who we should be connected to, but aren't.
protected CheckAndUpdateRemoteTAs ( List tas ) : void
tas List
return void

DhtDiscovery() public method

Uses the Dht for the bootstrap problem.
public DhtDiscovery ( StructuredNode node, IDht dht, string shared_namespace, RpcDhtProxy dht_proxy ) : Brunet.Connections
node Brunet.Symphony.StructuredNode The node needing remote tas.
dht IDht The dht for the shared overlay.
shared_namespace string
dht_proxy RpcDhtProxy A dht proxy for the shared overlay.
return Brunet.Connections

EndFindingTAs() public method

public EndFindingTAs ( ) : bool
return bool

SeekTAs() protected method

protected SeekTAs ( System.DateTime now ) : void
now System.DateTime
return void

Stop() public method

Stops publishing using the dht proxy.
public Stop ( ) : bool
return bool

Property Details

_dht protected property

protected IDht _dht
return IDht

_dht_proxy protected property

protected RpcDhtProxy,Brunet.Services.Dht _dht_proxy
return RpcDhtProxy

_node protected property

protected StructuredNode,Brunet.Symphony _node
return Brunet.Symphony.StructuredNode

_ongoing protected property

protected int _ongoing
return int

_p2p_address protected property

protected MemBlock,Brunet.Util _p2p_address
return Brunet.Util.MemBlock

_private_dht_key protected property

protected MemBlock,Brunet.Util _private_dht_key
return Brunet.Util.MemBlock

_shared_namespace protected property

protected string _shared_namespace
return string

_steady_state protected property

protected int _steady_state
return int