#include <CodeClient.h>
Public Member Functions | |
bool | Start (const char *code, const int nOnce1=0, const int nOnce2=0) |
bool | Stop (bool hardware=false) |
bool | GetCompleted (void) |
CodeServer::Reply | GetReply (void) |
int | GetUserSuppliedReply (void) |
void | GetNOnces (int &nOnce1, int &nOnce2) |
When there is a successful reply two random integers are generated by the CodeServer. | |
void | SetEncryptionKey (const void *data, const int length) |
void | SetServer (const XPAddress address) |
|
Tests the completion state of the last query. When the query completes the result can be retrieved by using GetReply()
|
|
Returns the last reply from a completed query.
|
|
Returns the last user supplied reply value from a completed query. See CodeServer::AddCode() for more details about a user supplied reply.
|
|
Sets the encryption key to be used by all queries for this client. The same key must be used with any RNLobby::CodeServer responding to queries from this client. The default encryption key is the same for RNLobby::CodeServer and RNLobby::CodeClient.
|
|
Sets the address and port of the server. The default for the instance of the class is localhost and port CodeServer::kDefaultPort
|
|
Starts a code query. This query is asynchronous and can be stopped by using Stop(). If a code is requested for the same key within the CodeServer timeout period without supplying valid nonce values the key query will result in kReply_KeyInUse. If these values are used for future CodeClient::Start() calls with the same code value then the result will be a successful key query.
|
|
Stops the current code query thread.
|