C# Class Brunet.Transport.Discovery

This class attempts to provide mechanisms for dealing with the bootstrap problem: how do we find peers in our overlay using some existing shared medium.
Show file Open project: pstjuste/brunet Class Usage Examples

Protected Properties

Property Type Description
_fe FuzzyEvent
_running int
_ta_handler ITAHandler

Public Methods

Method Description
BeginFindingTAs ( ) : bool

We need some TAs.

Discovery ( ITAHandler ta_handler ) : Brunet.Util
EndFindingTAs ( ) : bool

No more TAs are necessary.

Stop ( ) : bool

Protected Methods

Method Description
LocalTAsToString ( ) : IList

Returns a list of all local TAs as strings.

LocalTAsToString ( int max_tas ) : IList

Returns a list of some local TAs as strings.

SeekTAs ( System.DateTime now ) : void

Called to inquire the shared medium for TAs.

UpdateRemoteTAs ( IList tas_as_str ) : void

Converts a list of TAs as strings into TA objects.

UpdateRemoteTAs ( List tas ) : void

Method Details

BeginFindingTAs() public method

We need some TAs.
public BeginFindingTAs ( ) : bool
return bool

Discovery() public method

public Discovery ( ITAHandler ta_handler ) : Brunet.Util
ta_handler ITAHandler
return Brunet.Util

EndFindingTAs() public method

No more TAs are necessary.
public EndFindingTAs ( ) : bool
return bool

LocalTAsToString() protected method

Returns a list of all local TAs as strings.
protected LocalTAsToString ( ) : IList
return IList

LocalTAsToString() protected method

Returns a list of some local TAs as strings.
protected LocalTAsToString ( int max_tas ) : IList
max_tas int
return IList

SeekTAs() abstract protected method

Called to inquire the shared medium for TAs.
abstract protected SeekTAs ( System.DateTime now ) : void
now System.DateTime
return void

Stop() public method

public Stop ( ) : bool
return bool

UpdateRemoteTAs() protected method

Converts a list of TAs as strings into TA objects.
protected UpdateRemoteTAs ( IList tas_as_str ) : void
tas_as_str IList
return void

UpdateRemoteTAs() protected method

protected UpdateRemoteTAs ( List tas ) : void
tas List
return void

Property Details

_fe protected property

protected FuzzyEvent _fe
return FuzzyEvent

_running protected property

protected int _running
return int

_ta_handler protected property

protected ITAHandler _ta_handler
return ITAHandler