Next: , Previous: , Up: Developing Applications   [Contents]

4.6 Storing peer-specific data using the PEERSTORE service

GNUnet’s PEERSTORE service offers a persistorage for arbitrary peer-specific data. Other GNUnet services can use the PEERSTORE to store, retrieve and monitor data records. Each data record stored with PEERSTORE contains the following fields:

The first step is to start a connection to the PEERSTORE service:

#include "gnunet_peerstore_service.h"

peerstore_handle = GNUNET_PEERSTORE_connect (cfg);

The service handle peerstore_handle will be needed for all subsequent PEERSTORE operations.