|
| PercyHybridClient (const HybridClientParams *params, nservers_t num_servers, nservers_t t, sid_t *sids=NULL, PercyStats *stats=NULL) |
|
virtual | ~PercyClient () |
| Destructor. More...
|
|
nqueries_t | encode_request (vector< dbsize_t > block_numbers, nqueries_t querybsize=1) |
| Encode a request for the given block numbers. More...
|
|
dbsize_t | send_request (nqueries_t request_identifier, std::vector< ostream * > &osvec, bool send_num_queries=true) |
| Send the request for the given request ID. More...
|
|
dbsize_t | receive_replies (nqueries_t request_identifier, std::vector< istream * > &isvec) |
| Receive the servers' replies for a given request ID. More...
|
|
nqueries_t | process_replies (nservers_t h) |
| Process the servers' replies for all undecoded replies. More...
|
|
bool | get_result (nqueries_t request_identifier, vector< PercyBlockResults > &results) |
| Get the result for a given request ID. More...
|
|
bool | fetch_blocks (nqueries_t &request_identifier, vector< dbsize_t > block_numbers, vector< ostream * > &osvec, vector< istream * > &isvec, vector< PercyBlockResults > &results, nqueries_t querybsize=1) |
| Do encode_request(), send_request(), receive_replies(), process_replies(), and get_result() all in one shot. More...
|
|
virtual void encode_request_impl |
( |
nqueries_t |
request_identifier | ) |
|
|
protectedvirtual |
virtual nqueries_t process_replies_impl |
( |
nservers_t |
h, |
|
|
vector< vector< PercyResult > > & |
results |
|
) |
| |
|
protectedvirtual |
Implementation for encode_request().
- Parameters
-
h | The number of honest servers. |
results | Will be filled with the results for all requests for which a reply has been received received. |
- Returns
- The number of queries that we not successfully decoded.
Implements PercyClient.
virtual dbsize_t receive_replies_impl |
( |
nqueries_t |
request_identifier, |
|
|
vector< istream * > & |
isvec |
|
) |
| |
|
protectedvirtual |
Implementation for encode_request().
- Parameters
-
request_identifier | Request ID. |
isvec | Streams for input from the servers. |
- Returns
- The total bytes received (from all servers combined)
Implements PercyClient.
The documentation for this class was generated from the following file: