C# 클래스 Brunet.Services.Dht.Entry

An entry contains the data for a key:value pair such as the key, value, create time, and end time. The data is stored in a hashtable, which allows this to be casted to and from a hash table.
파일 보기 프로젝트 열기: pstjuste/brunet 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
_ht System.Collections.Hashtable

공개 메소드들

메소드 설명
Entry ( Hashtable ht ) : System

Uses the hashtable as the data store for the dht

Entry ( MemBlock key, MemBlock data, System.DateTime create_time, System.DateTime end_time ) : System

Creates a new Entry given the key, data, create time, and end time

Equals ( Object ent ) : bool

Compares the hashcodes for two Entrys.

GetHashCode ( ) : int

Gets the hashcode for an Entry object computed by the Key.GetHashCode() xor Value.GetHashCode().

메소드 상세

Entry() 공개 메소드

Uses the hashtable as the data store for the dht
public Entry ( Hashtable ht ) : System
ht System.Collections.Hashtable A hashtable containing key, value, create_time, and end_time strings as keys
리턴 System

Entry() 공개 메소드

Creates a new Entry given the key, data, create time, and end time
public Entry ( MemBlock key, MemBlock data, System.DateTime create_time, System.DateTime end_time ) : System
key Brunet.Util.MemBlock The dht key used for indexing this data.
data Brunet.Util.MemBlock A single value stored at this key.
create_time System.DateTime The initial creation time for this key:value pair.
end_time System.DateTime The time the lease expires for this key:value pair.
리턴 System

Equals() 공개 메소드

Compares the hashcodes for two Entrys.
public Equals ( Object ent ) : bool
ent Object
리턴 bool

GetHashCode() 공개 메소드

Gets the hashcode for an Entry object computed by the Key.GetHashCode() xor Value.GetHashCode().
public GetHashCode ( ) : int
리턴 int

프로퍼티 상세

_ht 보호되어 있는 프로퍼티

The hashtable where Entry data is stored.
protected Hashtable,System.Collections _ht
리턴 System.Collections.Hashtable