C# Class Brunet.Services.Dht.TableServer.TransferState

Afficher le fichier Open project: johnynek/brunet

Protected Properties

Свойство Type Description
_entry_enumerator IEnumerator
_interrupted bool
_sync Object

Méthodes publiques

Méthode Description
Interrupt ( ) : void

An asyncronous interrupt that prevents future transfers, but does not stop current transfers. Calls done.

TransferState ( Brunet con, TableServer ts ) : System

Begins a new transfer state to the neighbor connected via con.

Méthodes protégées

Méthode Description
Done ( ) : void

Used to clear out the key_entries when done to assist in garbage collection.

GetEntryEnumerator ( ) : IEnumerator

Returns an enumerator for key_entries.

NextTransfer ( Object o, EventArgs eargs ) : void

This is called by all completed transfers. It checks to see if there is another value to transfer, transfers it if there is. Otherwise it calls Done.

Method Details

Done() protected méthode

Used to clear out the key_entries when done to assist in garbage collection.
protected Done ( ) : void
Résultat void

GetEntryEnumerator() protected méthode

Returns an enumerator for key_entries.
protected GetEntryEnumerator ( ) : IEnumerator
Résultat IEnumerator

Interrupt() public méthode

An asyncronous interrupt that prevents future transfers, but does not stop current transfers. Calls done.
public Interrupt ( ) : void
Résultat void

NextTransfer() protected méthode

This is called by all completed transfers. It checks to see if there is another value to transfer, transfers it if there is. Otherwise it calls Done.
protected NextTransfer ( Object o, EventArgs eargs ) : void
o Object The Channel where the result of the previous transfer is stored.
eargs System.EventArgs Null
Résultat void

TransferState() public méthode

Begins a new transfer state to the neighbor connected via con.
public TransferState ( Brunet con, TableServer ts ) : System
con Brunet The connection to the neigbhor we will be transferring data to.
ts TableServer The table server we're providing the transfer for. C# does not allow sub-class objects to have access to their parent objects member variables, so we pass it in like this.
Résultat System

Property Details

_entry_enumerator protected_oe property

An enumerator for key_entries.
protected IEnumerator _entry_enumerator
Résultat IEnumerator

_interrupted protected_oe property

Set when no more transfers should be made.
protected bool _interrupted
Résultat bool

_sync protected_oe property

Lock for the enumeration of data to transfer
protected Object _sync
Résultat Object