C# Class DeOps.Implementation.OpCache

Show file Open project: swax/DeOps

Public Properties

Property Type Description
BootstrapContacts DhtContact>.Dictionary
BroadcastTimeout int
IPTable LinkedListNode>.Dictionary
IPs LinkedList
NextPublishAny System.DateTime
NextWebQuery System.DateTime
WebCacheDownloaded bool
WebCaches List

Private Properties

Property Type Description
GetMostUnresponsiveCache WebCache
LookupPingCheck void
Ping_Complete void
TryIPCache void
TryWebCache void
WebPublishResponse void
WebQueryResponse void

Public Methods

Method Description
AddContact ( DeOps.Implementation.Dht.DhtContact entry ) : void
AddSavedContact ( CachedIP cached ) : void
AddWebCache ( List caches ) : void
AddWebCache ( WebCache add ) : void
Core_MinuteTimerEvent ( ) : void
GetLastSeen ( int max ) : List
LoookupBootstrap ( ) : void
MakeWebCacheRequest ( WebCache cache, string request ) : string
OpBootstrap ( ) : void
OpCache ( DeOps.Implementation.Dht.DhtNetwork network ) : System
Reset ( ) : void
SaveIPs ( DeOps.Implementation.Protocol.PacketStream stream ) : void
SaveWeb ( DeOps.Implementation.Protocol.PacketStream stream ) : void
Search_FoundLookup ( byte data, object arg ) : void
SecondTimer ( ) : void
StartThread ( string name, ParameterizedThreadStart start, object arg ) : void
TryWebCache_CacheDownloaded ( object sender, DownloadStringCompletedEventArgs e ) : void
WebPing ( object parameter ) : void
WebPublish ( object parameter ) : void
WebQuery ( object parameter ) : void

Private Methods

Method Description
GetMostUnresponsiveCache ( ) : WebCache
LookupPingCheck ( ) : void
Ping_Complete ( object sender, System e ) : void
TryIPCache ( ) : void
TryWebCache ( ) : void
WebPublishResponse ( WebCache cache, string response ) : void
WebQueryResponse ( WebCache cache, string response ) : void

Method Details

AddContact() public method

public AddContact ( DeOps.Implementation.Dht.DhtContact entry ) : void
entry DeOps.Implementation.Dht.DhtContact
return void

AddSavedContact() public method

public AddSavedContact ( CachedIP cached ) : void
cached CachedIP
return void

AddWebCache() public method

public AddWebCache ( List caches ) : void
caches List
return void

AddWebCache() public method

public AddWebCache ( WebCache add ) : void
add WebCache
return void

Core_MinuteTimerEvent() public method

public Core_MinuteTimerEvent ( ) : void
return void

GetLastSeen() public method

public GetLastSeen ( int max ) : List
max int
return List

LoookupBootstrap() public method

public LoookupBootstrap ( ) : void
return void

MakeWebCacheRequest() public method

public MakeWebCacheRequest ( WebCache cache, string request ) : string
cache WebCache
request string
return string

OpBootstrap() public method

public OpBootstrap ( ) : void
return void

OpCache() public method

public OpCache ( DeOps.Implementation.Dht.DhtNetwork network ) : System
network DeOps.Implementation.Dht.DhtNetwork
return System

Reset() public method

public Reset ( ) : void
return void

SaveIPs() public method

public SaveIPs ( DeOps.Implementation.Protocol.PacketStream stream ) : void
stream DeOps.Implementation.Protocol.PacketStream
return void

SaveWeb() public method

public SaveWeb ( DeOps.Implementation.Protocol.PacketStream stream ) : void
stream DeOps.Implementation.Protocol.PacketStream
return void

Search_FoundLookup() public method

public Search_FoundLookup ( byte data, object arg ) : void
data byte
arg object
return void

SecondTimer() public method

public SecondTimer ( ) : void
return void

StartThread() public method

public StartThread ( string name, ParameterizedThreadStart start, object arg ) : void
name string
start ParameterizedThreadStart
arg object
return void

TryWebCache_CacheDownloaded() public method

public TryWebCache_CacheDownloaded ( object sender, DownloadStringCompletedEventArgs e ) : void
sender object
e System.Net.DownloadStringCompletedEventArgs
return void

WebPing() public method

public WebPing ( object parameter ) : void
parameter object
return void

WebPublish() public method

public WebPublish ( object parameter ) : void
parameter object
return void

WebQuery() public method

public WebQuery ( object parameter ) : void
parameter object
return void

Property Details

BootstrapContacts public property

public Dictionary BootstrapContacts
return DhtContact>.Dictionary

BroadcastTimeout public property

public int BroadcastTimeout
return int

IPTable public property

public Dictionary> IPTable
return LinkedListNode>.Dictionary

IPs public property

public LinkedList IPs
return LinkedList

NextPublishAny public property

public DateTime,System NextPublishAny
return System.DateTime

NextWebQuery public property

public DateTime,System NextWebQuery
return System.DateTime

WebCacheDownloaded public property

public bool WebCacheDownloaded
return bool

WebCaches public property

public List WebCaches
return List