GNUnet  0.10.x
013.c
Go to the documentation of this file.
3  const char *sub_system,
4  const struct GNUNET_PeerIdentity *peer,
5  const char *key,
6  const void *value,
7  size_t size,
11  void *cont_cls);
12 
struct GNUNET_GETOPT_CommandLineOption options[]
Definition: 002.c:5
char * sub_system
Which subsystem does the store?
static struct GNUNET_ARM_Handle * h
Connection with ARM.
Definition: gnunet-arm.c:94
static char * value
Value of the record to add/remove.
Context for a store request.
Definition: peerstore_api.c:95
struct GNUNET_PEERSTORE_StoreContext * GNUNET_PEERSTORE_store(struct GNUNET_PEERSTORE_Handle *h, const char *sub_system, const struct GNUNET_PeerIdentity *peer, const char *key, const void *value, size_t size, struct GNUNET_TIME_Absolute expiry, enum GNUNET_PEERSTORE_StoreOption options, GNUNET_PEERSTORE_Continuation cont, void *cont_cls)
Store a new entry in the PEERSTORE.
void * cont_cls
Closure for cont.
GNUNET_PEERSTORE_StoreOption
Options for storing values in PEERSTORE.
Handle to the PEERSTORE service.
Definition: peerstore_api.c:40
struct GNUNET_TESTBED_Peer * peer
The peer associated with this model.
struct GNUNET_HashCode key
The key used in the DHT.
static unsigned int size
Size of the "table".
Definition: peer.c:66
void(* GNUNET_PEERSTORE_Continuation)(void *cls, int success)
Continuation called with a status result.
The identity of the host (wraps the signing key of the peer).
struct GNUNET_TIME_Absolute expiry
When does the value expire?
GNUNET_PEERSTORE_Continuation cont
Continuation called with service response.
Time for absolute times used by GNUnet, in microseconds.