C# Class Brunet.Applications.MultiNode

This class provides a layer on top of BasicNode to support creating multiple Brunet.Nodes in a single application.
Inheritance: BasicNode
Afficher le fichier Open project: pstjuste/brunet Class Usage Examples

Protected Properties

Свойство Type Description
_count int
_nodes List
_threads List

Méthodes publiques

Méthode Description
MultiNode ( NodeConfig node_config, int count ) : System
Run ( ) : void

This is where the magic happens! Sets up Shutdown, creates all the nodes, and call Connect on them in separate threads.

Méthodes protégées

Méthode Description
StopPem ( System.DateTime now ) : void

All nodes are disconnected? Stop the PathEL.

Method Details

MultiNode() public méthode

public MultiNode ( NodeConfig node_config, int count ) : System
node_config NodeConfig
count int
Résultat System

Run() public méthode

This is where the magic happens! Sets up Shutdown, creates all the nodes, and call Connect on them in separate threads.
public Run ( ) : void
Résultat void

StopPem() protected méthode

All nodes are disconnected? Stop the PathEL.
protected StopPem ( System.DateTime now ) : void
now System.DateTime
Résultat void

Property Details

_count protected_oe property

The total amount of Brunet.Nodes.
protected int _count
Résultat int

_nodes protected_oe property

Contains a list of all the ApplicationNodes.
protected List _nodes
Résultat List

_threads protected_oe property

Contains a list of all the Brunet.Nodes Connect calls.
protected List _threads
Résultat List