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.
|• Validating requests and replies:|
|• Deriving a key from a reply:|
|• Initialization of the plugin:|
|• Shutdown of the plugin:|
|• Integration of the plugin with the build system:|