C# Class DeOps.Services.Assist.VersionedCache

Inheritance: IDisposable
Show file Open project: swax/DeOps Class Usage Examples

Public Properties

Property Type Description
DataType uint
FileAquired FileAquiredHandler
FileMap OpVersionedFile>.ThreadedDictionary
FileRemoved FileRemovedHandler
Service uint
Store DeOps.Implementation.Dht.DhtStore

Public Methods

Method Description
Core_MinuteTimer ( ) : void
Core_SecondTimer ( ) : void
Dispose ( ) : void
GetFile ( ulong id ) : OpVersionedFile
GetFilePath ( VersionedFileHeader header ) : string
Load ( ) : void
LoadHeaders ( ) : void
LocalSync_TagReceived ( ulong user, byte tag ) : void
Network_StatusChange ( ) : void
Research ( ulong key ) : void
SaveHeaders ( ) : void
Search_Found ( DeOps.Implementation.Dht.DhtSearch search, DhtAddress source, byte data ) : void
Search_Local ( ulong key, byte parameters, List results ) : void
Store_Local ( DeOps.Implementation.Dht.DataReq store ) : void
Store_Patch ( DhtAddress source, byte data ) : void
UpdateLocal ( string tempPath, byte key, byte extra ) : OpVersionedFile
VersionedCache ( DeOps.Implementation.Dht.DhtNetwork network, uint service, uint type, bool localSync ) : System

Private Methods

Method Description
CacheFile ( SignedData signedHeader, VersionedFileHeader header ) : void
Download ( SignedData signed, VersionedFileHeader header ) : void
EndDownload ( object args ) : void
LocalSync_GetTag ( ) : byte[]
Process_VersionedFile ( DeOps.Implementation.Dht.DataReq data, SignedData signed, VersionedFileHeader header ) : void
StartSearch ( ulong user, uint version ) : void
Store_Replicate ( DeOps.Implementation.Dht.DhtContact contact ) : List
Transfers_FileRequest ( ulong key, DeOps.Services.Transfer.FileDetails details ) : string
Transfers_FileSearch ( ulong key, DeOps.Services.Transfer.FileDetails details ) : bool

Method Details

Core_MinuteTimer() public method

public Core_MinuteTimer ( ) : void
return void

Core_SecondTimer() public method

public Core_SecondTimer ( ) : void
return void

Dispose() public method

public Dispose ( ) : void
return void

GetFile() public method

public GetFile ( ulong id ) : OpVersionedFile
id ulong
return OpVersionedFile

GetFilePath() public method

public GetFilePath ( VersionedFileHeader header ) : string
header VersionedFileHeader
return string

Load() public method

public Load ( ) : void
return void

LoadHeaders() public method

public LoadHeaders ( ) : void
return void

LocalSync_TagReceived() public method

public LocalSync_TagReceived ( ulong user, byte tag ) : void
user ulong
tag byte
return void

Network_StatusChange() public method

public Network_StatusChange ( ) : void
return void

Research() public method

public Research ( ulong key ) : void
key ulong
return void

SaveHeaders() public method

public SaveHeaders ( ) : void
return void

Search_Found() public method

public Search_Found ( DeOps.Implementation.Dht.DhtSearch search, DhtAddress source, byte data ) : void
search DeOps.Implementation.Dht.DhtSearch
source DhtAddress
data byte
return void

Search_Local() public method

public Search_Local ( ulong key, byte parameters, List results ) : void
key ulong
parameters byte
results List
return void

Store_Local() public method

public Store_Local ( DeOps.Implementation.Dht.DataReq store ) : void
store DeOps.Implementation.Dht.DataReq
return void

Store_Patch() public method

public Store_Patch ( DhtAddress source, byte data ) : void
source DhtAddress
data byte
return void

UpdateLocal() public method

public UpdateLocal ( string tempPath, byte key, byte extra ) : OpVersionedFile
tempPath string
key byte
extra byte
return OpVersionedFile

VersionedCache() public method

public VersionedCache ( DeOps.Implementation.Dht.DhtNetwork network, uint service, uint type, bool localSync ) : System
network DeOps.Implementation.Dht.DhtNetwork
service uint
type uint
localSync bool
return System

Property Details

DataType public property

public uint DataType
return uint

FileAquired public property

public FileAquiredHandler FileAquired
return FileAquiredHandler

FileMap public property

public ThreadedDictionary FileMap
return OpVersionedFile>.ThreadedDictionary

FileRemoved public property

public FileRemovedHandler FileRemoved
return FileRemovedHandler

Service public property

public uint Service
return uint

Store public property

public DhtStore,DeOps.Implementation.Dht Store
return DeOps.Implementation.Dht.DhtStore