11 #include "RNPlatform/Inc/MemoryTracking.h"
12 #ifndef _CODECLIENT_H_
13 #define _CODECLIENT_H_
14 #include "RNPlatform/Inc/Encryption.h"
15 #include "RNPlatform/Inc/ThreadClass.h"
16 #include "RNPlatform/Inc/Thread.h"
17 #include "RNXPSockets/Inc/XPSockets.h"
18 #include "RNLobby/Inc/CodeServer.h"
19 #include "RNPlatform/Inc/SysTime.h"
21 namespace RNReplicaNet
41 bool Start(
const char *code,
const int nOnce1 = 0,
const int nOnce2 = 0);
46 bool Stop(
bool hardware =
false);
75 int ThreadEntry(
void);
76 void CleanQuery(
void);
80 volatile CodeServer::Reply mReply;
81 volatile bool mGotReply;
85 int mUserSuppliedReply;
88 bool mServerAddressSet;
int GetUserSuppliedReply(void)
void SetServer(const XPAddress &address)
This code client queries for the validity of codes with the RNLobby::CodeServer.
Definition: CodeClient.h:28
Definition: Encryption.h:27
Definition: XPSocket.h:91
bool Stop(bool hardware=false)
void GetNOnces(int &nOnce1, int &nOnce2)
When there is a successful reply two random integers are generated by the CodeServer.
bool Start(const char *code, const int nOnce1=0, const int nOnce2=0)
void SetEncryptionKey(const void *data, const int length)
CodeServer::Reply GetReply(void)
Definition: XPSocketUrgentClass.h:26
Definition: ThreadClass.h:96