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.
Afficher le fichier Open project: pstjuste/brunet Class Usage Examples

Protected Properties

Свойство Type Description
_fe FuzzyEvent
_running int
_ta_handler ITAHandler

Méthodes publiques

Méthode Description
BeginFindingTAs ( ) : bool

We need some TAs.

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

No more TAs are necessary.

Stop ( ) : bool

Méthodes protégées

Méthode 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 méthode

We need some TAs.
public BeginFindingTAs ( ) : bool
Résultat bool

Discovery() public méthode

public Discovery ( ITAHandler ta_handler ) : Brunet.Util
ta_handler ITAHandler
Résultat Brunet.Util

EndFindingTAs() public méthode

No more TAs are necessary.
public EndFindingTAs ( ) : bool
Résultat bool

LocalTAsToString() protected méthode

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

LocalTAsToString() protected méthode

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

SeekTAs() abstract protected méthode

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

Stop() public méthode

public Stop ( ) : bool
Résultat bool

UpdateRemoteTAs() protected méthode

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

UpdateRemoteTAs() protected méthode

protected UpdateRemoteTAs ( List tas ) : void
tas List
Résultat void

Property Details

_fe protected_oe property

protected FuzzyEvent _fe
Résultat FuzzyEvent

_running protected_oe property

protected int _running
Résultat int

_ta_handler protected_oe property

protected ITAHandler _ta_handler
Résultat ITAHandler