C# Класс Brunet.Services.Dht.TableServer.TransferState

Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
_entry_enumerator IEnumerator
_interrupted bool
_sync Object

Открытые методы

Метод Описание
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.

Защищенные методы

Метод Описание
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.

Описание методов

Done() защищенный Метод

Used to clear out the key_entries when done to assist in garbage collection.
protected Done ( ) : void
Результат void

GetEntryEnumerator() защищенный Метод

Returns an enumerator for key_entries.
protected GetEntryEnumerator ( ) : IEnumerator
Результат IEnumerator

Interrupt() публичный Метод

An asyncronous interrupt that prevents future transfers, but does not stop current transfers. Calls done.
public Interrupt ( ) : void
Результат void

NextTransfer() защищенный Метод

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
Результат void

TransferState() публичный Метод

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.
Результат System

Описание свойств

_entry_enumerator защищенное свойство

An enumerator for key_entries.
protected IEnumerator _entry_enumerator
Результат IEnumerator

_interrupted защищенное свойство

Set when no more transfers should be made.
protected bool _interrupted
Результат bool

_sync защищенное свойство

Lock for the enumeration of data to transfer
protected Object _sync
Результат Object