ReplicaNet and RNLobby
1
|
#include <BackendServer.h>
Classes | |
struct | TitleIDInfo |
Public Types | |
enum | Reply { kReply_InvalidTitleID = 0, kReply_ValidTitleID, kReply_TitleIDSupportPeriodExpired, kReply_ServerDownForMaintanence, kReply_ServerCannotBeContacted } |
enum | { kDefaultPort = 4000, kDefaultDebugPort = 4001 } |
![]() | |
enum | { kNoOwnerThread = -1 } |
Public Member Functions | |
BackendServer (const char *lobbyDSN=MRNLobbyDefaultDSN) | |
bool | Start (const XPAddress &address=XPAddress(kDefaultPort)) |
![]() | |
virtual bool | StartWithSocket (t_XPSocket *socket, const bool allowDelete=true) |
virtual bool | Stop (void) |
void | SetEncryptionKey (const void *data, const int length) |
virtual void | CallbackDataReceived (DynamicMessageHelper &message, XPAddress &address) |
virtual void | CallbackDataSend (DynamicMessageHelper &message, XPAddress &address) |
virtual void | CallbackQueryReplyTime (const float seconds) |
virtual bool | CallbackPoll (void) |
![]() | |
ThreadClass () | |
virtual | ~ThreadClass () |
void | Sleep (int milliseconds) |
![]() | |
MutexClass () | |
virtual | ~MutexClass () |
void | Lock (void) |
void | UnLock (void) |
![]() | |
Thread () | |
virtual | ~Thread () |
void | Begin (ThreadClass *threaded_class) |
void | Terminate (void) |
bool | GetTerminated (void) |
bool | GetEverTerminated (void) |
bool | GetIsRunning (void) const |
void | SetPreferredProcessor (int processor=kReplicaNetPreferredProcessorOSChoice) |
int | GetPreferredProcessor (void) |
Static Public Member Functions | |
static std::string | TranslateReply (const Reply reply) |
![]() | |
static SysTimeType | FloatTime (void) |
![]() | |
static int | CallThreadEntry (ThreadClass *thread_class) |
static int | GetCurrentProcessorNumber (void) |
static size_t | GetNumAllocated (void) |
static size_t | GetNumActive (void) |
Additional Inherited Members | |
![]() | |
virtual bool | PackageAndSendData (t_XPSocket *socket, const DynamicMessageHelper &message, const XPAddress &address) |
virtual bool | CallbackParsePacketData (t_XPSocket *socket, const XPAddress &addr, void *data, size_t &length, DynamicMessageHelper &result) |
int | ThreadEntry (void) |
![]() | |
void | DoQuitNow (const int returnCode) |
void | CheckQuit (void) |
![]() | |
static size_t | GetNumAllocated (void) |
![]() | |
t_XPSocket * | mSocket |
bool | mAllowDelete |
int | mNOnce |
This class is used to provide a TitleID verification service to BackendClient Backend TitleID information is stored in the following table: