GNUnet  0.10.x
Data Structures | Macros | Typedefs | Enumerations | Functions | Variables
gnunet_scalarproduct_service.h File Reference
#include <gcrypt.h>
Include dependency graph for gnunet_scalarproduct_service.h:
This graph shows which files directly or indirectly include this file:

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. More...
 

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. More...
 

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_ComputationHandleGNUNET_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. More...
 
struct GNUNET_SCALARPRODUCT_ComputationHandleGNUNET_SCALARPRODUCT_accept_computation (const struct GNUNET_CONFIGURATION_Handle *cfg, const struct GNUNET_HashCode *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,. More...
 
void GNUNET_SCALARPRODUCT_cancel (struct GNUNET_SCALARPRODUCT_ComputationHandle *h)
 Cancel an ongoing computation or revoke our collaboration offer. More...
 

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. More...
 

Detailed Description

Author
Christian M. Fuchs
Gaurav Kukreja

API to the scalarproduct service

Definition in file gnunet_scalarproduct_service.h.