Previous: , Up: Storing peer-specific data using the PEERSTORE service   [Contents]

4.6.4 Disconnecting from PEERSTORE

When the connection to the PEERSTORE service is no longer needed, disconnect using the following function:

GNUNET_PEERSTORE_disconnect (struct GNUNET_PEERSTORE_Handle *h,
                             int sync_first);

If the sync_first flag is set to GNUNET_YES, the API will delay the disconnection until all store requests are received by the PEERSTORE service. Otherwise, it will disconnect immediately.