C# 클래스 Brunet.Services.Dht.TableServer.TransferState

파일 보기 프로젝트 열기: johnynek/brunet

보호된 프로퍼티들

프로퍼티 타입 설명
_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