19 #ifndef __AGSERVER_H__
20 #define __AGSERVER_H__
23 #include "datastore.h"
25 #include "percyserver.h"
48 virtual bool handle_request_impl (
49 const std::vector<unsigned char*> &requests,
50 const std::vector<unsigned char*> &responses);
52 virtual void combine_results (
unsigned char * result,
53 const std::vector<unsigned char*> &worker_results);
58 bool handle_request_16 (
unsigned char * request,
unsigned char * response,
59 const unsigned char * database);
60 bool handle_request_20 (
unsigned char * request,
unsigned char * response,
61 const unsigned char * database);
Definition: percystats.h:66
A simple database object.
Definition: datastore.h:34
A PIR server for the CPIR protocol by Aguilar Melchor and Gaborit (2007).
Definition: agserver.h:35
PercyStats * stats
Statistics collection object.
Definition: percyserver.h:141
An abstract base class for a PIR server.
Definition: percyserver.h:34
Definition: agparams.h:73
virtual ~PercyAGServer()
Destructor.
PercyAGServer(DataStore *datastore, const PercyServerParams *params, PercyStats *stats=NULL)
Constructor.
Server parameters.
Definition: percyparams.h:251
DataStore * datastore
The database used by the server.
Definition: percyserver.h:137