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

Mostrar archivo Open project: johnynek/brunet

Protected Properties

Property Type Description
_entry_enumerator IEnumerator
_interrupted bool
_sync Object

Public Methods

Method 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.

Protected Methods

Method 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 method

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

GetEntryEnumerator() protected method

Returns an enumerator for key_entries.
protected GetEntryEnumerator ( ) : IEnumerator
return IEnumerator

Interrupt() public method

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

NextTransfer() protected method

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
return void

TransferState() public method

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.
return System

Property Details

_entry_enumerator protected_oe property

An enumerator for key_entries.
protected IEnumerator _entry_enumerator
return IEnumerator

_interrupted protected_oe property

Set when no more transfers should be made.
protected bool _interrupted
return bool

_sync protected_oe property

Lock for the enumeration of data to transfer
protected Object _sync
return Object