C# Class Brunet.Services.Dht.RpcDhtProxy.Entry

This class keeps Entry, whose element is key, value, ttl, and brunet timer. Each instance has its own timer, so we don't need to order or track each proxy entry to notice the oldest entry. Each timer initiates ttl expiration. While ttl expiration, it calls EntryCallback.
Show file Open project: pstjuste/brunet

Public Properties

Property Type Description
Key MemBlock
Timer SimpleTimer
Ttl int
Value MemBlock
Working bool

Public Methods

Method Description
Entry ( MemBlock key, MemBlock value, int ttl ) : System

Method Details

Entry() public method

public Entry ( MemBlock key, MemBlock value, int ttl ) : System
key MemBlock
value MemBlock
ttl int
return System

Property Details

Key public property

public MemBlock Key
return MemBlock

Timer public property

public SimpleTimer Timer
return SimpleTimer

Ttl public property

public int Ttl
return int

Value public property

public MemBlock Value
return MemBlock

Working public property

public bool Working
return bool