Next: , Previous: , Up: Using the DHT   [Contents]

4.7.3 Implementing a block plugin

In order to store data in the DHT, it is necessary to provide a block plugin. The DHT uses the block plugin to ensure that only well-formed requests and replies are transmitted over the network.

The block plugin should be put in a file plugin\_block\_SERVICE.c in the service’s respective directory. The mandatory functions that need to be implemented for a block plugin are described in the following sections.