Client parameters.
More...
#include <percyparams.h>
Constructor.
- Parameters
-
params | The protocol parameters. |
num_servers | The number of servers being queried. |
is_null | If true, the client does nothing except send random data to the server(s) and read the response(s). |
bool is_compatible |
( |
std::istream & |
is, |
|
|
nservers_t |
sid |
|
) |
| const |
Test compatibility with a server.
Read parameters from a server and check compatibility with the server.
- Parameters
-
is | Stream to read from. |
sid | Server ID of server begin checked. |
- Returns
- Returns true if server is compatible with this client; false otherwise.
Check if the client is a null client.
If true, the client does nothing except send random data to the server(s) and read the response(s).
nservers_t num_servers |
( |
| ) |
const |
|
inline |
Get the number of servers being queried.
Get the protocol parameters.
void print |
( |
std::ostream & |
os | ) |
const |
Prints the parameters in CSV form.
Prints the protocol parameters and add the following client fields:
num_servers,
- Parameters
-
void send |
( |
std::ostream & |
os, |
|
|
nservers_t |
sid |
|
) |
| const |
Send parameters and sid to server to test compatibility.
- Parameters
-
os | Stream to write to. |
sid | Server ID of server being sent params. |
The number of servers being queried.
Whether or not the client a null client.
The documentation for this class was generated from the following file: