#include <gcrypt.h>Go to the source code of this file.
Data Structures | |
| struct | GNUNET_SCALARPRODUCT_Element |
| An element key-value pair for scalarproduct. More... | |
Macros | |
| #define | GCRYPT_NO_DEPRECATED |
| #define | GNUNET_SCALARPRODUCT_VERSION 0x00000044 |
| Version of the scalarproduct API. | |
Typedefs | |
| typedef void(* | GNUNET_SCALARPRODUCT_DatumProcessor) (void *cls, enum GNUNET_SCALARPRODUCT_ResponseStatus status, gcry_mpi_t result) |
| Process a datum that was stored in the scalarproduct. | |
Enumerations | |
| enum | GNUNET_SCALARPRODUCT_ResponseStatus { GNUNET_SCALARPRODUCT_STATUS_INIT = 0 , GNUNET_SCALARPRODUCT_STATUS_ACTIVE = 1 , GNUNET_SCALARPRODUCT_STATUS_SUCCESS , GNUNET_SCALARPRODUCT_STATUS_FAILURE , GNUNET_SCALARPRODUCT_STATUS_INVALID_RESPONSE , GNUNET_SCALARPRODUCT_STATUS_DISCONNECTED } |
| Result status values for the computation. More... | |
Functions | |
| struct GNUNET_SCALARPRODUCT_ComputationHandle * | GNUNET_SCALARPRODUCT_start_computation (const struct GNUNET_CONFIGURATION_Handle *cfg, const struct GNUNET_HashCode *session_key, const struct GNUNET_PeerIdentity *peer, const struct GNUNET_SCALARPRODUCT_Element *elements, uint32_t element_count, GNUNET_SCALARPRODUCT_DatumProcessor cont, void *cont_cls) |
| Request by Alice's client for computing a scalar product. | |
| struct GNUNET_SCALARPRODUCT_ComputationHandle * | GNUNET_SCALARPRODUCT_accept_computation (const struct GNUNET_CONFIGURATION_Handle *cfg, const struct GNUNET_HashCode *session_key, const struct GNUNET_SCALARPRODUCT_Element *elements, uint32_t element_count, GNUNET_SCALARPRODUCT_ContinuationWithStatus cont, void *cont_cls) |
| Used by Bob's client to cooperate with Alice,. | |
| void | GNUNET_SCALARPRODUCT_cancel (struct GNUNET_SCALARPRODUCT_ComputationHandle *h) |
| Cancel an ongoing computation or revoke our collaboration offer. | |
Variables | |
| GNUNET_NETWORK_STRUCT_END typedef void(* | GNUNET_SCALARPRODUCT_ContinuationWithStatus )(void *cls, enum GNUNET_SCALARPRODUCT_ResponseStatus status) |
| Continuation called to notify client about result of the operation. | |
API to the scalarproduct service
Definition in file gnunet_scalarproduct_service.h.