11 #include "RNPlatform/Inc/MemoryTracking.h"
12 #ifndef _BACKENDSERVER_H_
13 #define _BACKENDSERVER_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/RNLobby.h"
19 #include "RNLobby/Inc/BaseServer.h"
20 #include "RNODBCSQL/Inc/ODBCSQL.h"
21 #include "RNLog/Inc/Log.h"
25 namespace RNReplicaNet
42 kReply_InvalidTitleID = 0,
44 kReply_TitleIDSupportPeriodExpired,
45 kReply_ServerDownForMaintanence,
46 kReply_ServerCannotBeContacted
51 kDefaultDebugPort = 4001
58 static std::string TranslateReply(
const Reply reply);
65 std::string mRLSrvAdvertiseAddress;
66 int mRLSrvAdvertisePort;
67 std::string mRLSrvAdvertiseCrypto;
68 std::string mRLSrvCodeAddress;
70 std::string mRLSrvCodeCrypto;
71 std::string mRLSrvNATAddress;
73 std::string mRLSrvNATCrypto;
74 std::string mRLSrvNATDetect1Address;
75 int mRLSrvNATDetect1Port;
76 std::string mRLSrvNATDetect2Address;
77 int mRLSrvNATDetect2Port;
78 std::string mRLSrvNATDetectCrypto;
79 std::string mRLSrvStatAddress;
81 std::string mRLSrvStatCrypto;
82 std::string mRLSrvUserAddress;
84 std::string mRLSrvUserCrypto;
85 std::string mRLSrvCloudAddress;
87 std::string mRLSrvCloudCrypto;
91 RNReplicaNet::RNLog::Log mLog;
93 void CallbackTidy(
void);
103 BlockManager(
const char *lobbyDSN);
108 void RefreshBlocks(
void);
110 bool FindTitleIDInfo(
const int titleID,
TitleIDInfo &info);
113 RNODBCSQL::ODBCSQL mWrite;
114 RNODBCSQL::ODBCSQL mRead;
116 std::map<int,TitleIDInfo> mInfoList;
119 BlockManager mBlockManager;
Definition: XPSocket.h:91
Definition: BackendServer.h:34
bool Start(const XPAddress &address=XPAddress(kDefaultPort))
Definition: BackendServer.h:60
Definition: MessageHelper.h:211
A server base class that handles encrypted messages to and from a socket.
Definition: BaseServer.h:24
Definition: ThreadClass.h:96