Метод | Описание | |
---|---|---|
Dht ( KademliaNode dhtNode = null, bool alreadyBootstrapped = false, string btpNode = "" ) : System |
Create a DHT using the given master server, and specify whether to publish our IP. PRECONDITION: Create one per app or you will have a node ID collision.
|
|
Get ( string key ) : |
Retrieve a value from the DHT.
|
|
GetAll ( string key ) : IList |
Retrieve all applicable values from the DHT.
|
|
MaxSize ( ) : int |
Returns the maximum size of individual puts.
|
|
Put ( string filename ) : void |
Puts a value in the DHT under a key.
|
public Dht ( KademliaNode dhtNode = null, bool alreadyBootstrapped = false, string btpNode = "" ) : System | ||
dhtNode | KademliaNode | The KademliaNode that is used to communicate using the protocol |
alreadyBootstrapped | bool | Checks if the node have or not to bootstrap |
btpNode | string | The node to bootstrap with (can be leaved null) |
Результат | System |
public Get ( string key ) : |
||
key | string | The key of the value to retrieve. |
Результат |
public GetAll ( string key ) : IList |
||
key | string | The key of the value to retrieve. |
Результат | IList |
public Put ( string filename ) : void | ||
filename | string | The filename of resource to store into the network |
Результат | void |