|
bool | Start (void) |
| Because this uses a TransportUDP connection it will call XPURL::RegisterDefaultTransports()
|
|
bool | Stop (void) |
|
void | SetServer (const XPAddress &address) |
|
bool | CreateLoginUser (const char *name, const char *password, const char *emailAddress="", const char *optionalID="") |
|
bool | LoginUser (const char *name, const char *password) |
|
bool | ChangePassword (const char *password="") |
|
bool | ChangeEmail (const char *emailAddress="") |
|
int | GetLoginID (void) |
| Returns the login ID when the user is logged in or UserInfo::kAnyLoginID when the user is not logged in.
|
|
std::string | GetLoginName (void) |
| Returns the login name as stored on the server when the user is logged in.
|
|
bool | LogoutUser (void) |
| Logs out a user.
|
|
bool | DeleteUser (void) |
| Deletes a user that is currently logged in.
|
|
bool | SendMessageTo (const int loginID, const char *message="") |
| Sends a message from a logged in user to a login ID.
|
|
bool | AddFriend (const int friendLoginID) |
| Request to add someone as a friend.
|
|
bool | AuthoriseFriendRequest (const int friendLoginID) |
| Authorise a friend request from a UserInfo that has the bit kState_FriendRequest set in mState.
|
|
bool | DenyFriendRequest (const int friendLoginID) |
| Deny a friend request from a UserInfo that has the bit kState_FriendRequest set in mState.
|
|
bool | RemoveFriend (const int friendLoginID) |
| Remove a user from the friend list. The user info changes will stop tracking.
|
|
void | AnswerMessage (const int fromLoginID=UserInfo::kAnyLoginID) |
| Call this to clear the state for a received message.
|
|
int | GetState (void) |
|
bool | SendGameInvite (const int friendLoginID, const char *invite="") |
| Sends a game invite to a friend. Only friends can receive game invites from a user.
|
|
bool | CancelGameInvite (const int friendLoginID) |
| Cancel a game invite to a friend.
|
|
bool | AnswerGameInvite (const int friendLoginID=UserInfo::kAnyLoginID) |
| Call this to clear the state for a received game invite from a specific friend or by default all game invites.
|
|
bool | SetVariable (const int section, const char *name, const char *value=0, const VariableAccess access=kPrivateReadWrite) |
|
bool | GetVariable (const int section, const char *name, const VariableAccess access=kPrivateReadWrite) |
|
bool | GetVariable (const int loginID, const int section, const char *name, const VariableAccess access=kPublicReadPrivateRead) |
|
bool | AddUserInfo (const int loginID, const bool useCache=true, const bool trackChanges=false) |
|
bool | RemoveUserInfo (const int loginID) |
| Stops tracking a loginID for changes that have been requested from using AddUserInfo(). If the user is a friend this will not remove the user from the friend list.
|
|
bool | GetUserInfo (const int loginID, UserInfo *result) |
|
bool | CreateChatRoom (const char *password=0) |
| Create a new chat room and if successful makes this user join the room as the room admin. The user will be notified of the chatRoomID by CallbackChatRoomCreated()
|
|
bool | LeaveChatRoom (void) |
| Leave a chat room. If the user created the room and the room has no admins left then the room will be closed. All users in the room will be receive CallbackChatRoomLeft() with a reason of kReason_ChatRoomClosed.
|
|
bool | EnterChatRoom (const int chatRoomID, const char *password=0) |
|
int | GetCurrentRoom (void) |
| Returns the current chatRoomID.
|
|
bool | ChatRoomAdminMessage (const char *text, const unsigned int flags=0) |
|
bool | ChatRoomSay (const char *text, const unsigned int flags=0) |
|
bool | ChatRoomWhisper (const int loginID, const char *text, const unsigned int flags=0) |
|
bool | ChatRoomKickUser (const int loginID, const bool ban=false, const char *reason="") |
|
bool | GlobalKickUser (const int loginID, const bool ban=false, const char *reason="") |
|
bool | GlobalRestoreUser (const int loginID) |
| If a user account has been globally banned this will restore the account to active service.
|
|
bool | IsRoomAdmin (void) |
| If the user is a room admin this will return true.
|
|
bool | IsSuperAdmin (void) |
| If the user is a super admin this will return true.
|
|
bool | PlayingAGame (const bool playing=false, const char *url="") |
|
bool | GetPlayingAGame (void) |
| Gets the state set by PlayingAGame()
|
|
std::string | GetPlayingAGameURL (void) |
| Gets the url state set by PlayingAGame()
|
|
std::string | GetLastOnlineTime (void) |
| Gets the last time this user account logged in.
|
|
bool | RequestUserNonce (const int seconds) |
|
bool | RequestNamesLike (const char *match="", const bool banned=false) |
|
int | GetPendingGetVariableRequests (void) |
|
void | SetEncryptionKey (const void *data, const int length) |
|
virtual bool | StartWithTransport (Transport *transport, const bool allowDelete=true, const bool isListen=true) |
|
size_t | GetNumConnections (void) const |
| Returns the number of active connections.
|
|
size_t | GetNumTotalSessions (void) const |
| Returns the total number of connections.
|
|
bool | SetAsDisconnecting (Transport *transport) |
| This will put the connection into a list pending disconnection after a timeout period.
|
|
| 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) |
|
|
virtual void | CallbackConnectionEstablished (Transport *transport) |
| User extensible callbacks. More...
|
|
virtual void | CallbackUserLogin (const int loginID) |
| A virtual callback that is triggered when the user successfully logs in.
|
|
virtual void | CallbackUserLoginFailed (const Reason reason) |
| A virtual callback that is triggered when the user login attempt fails.
|
|
virtual void | CallbackUserLogout (const Reason reason) |
| A virtual callback that is triggered when the user logs out.
|
|
virtual void | CallbackUserAlreadyExists (const int loginID) |
| A virtual callback that is triggered when the user account already exists.
|
|
virtual void | CallbackUserLoginFromOtherClient (void) |
| A virtual callback that is triggered when the user is logged out due to the same account being logged in on another instance.
|
|
virtual void | CallbackMessageReceived (const int fromLoginID, const char *message) |
|
virtual void | CallbackFriendDeleted (const int loginID) |
| A virtual callback that is triggered when the user deletes a friend.
|
|
virtual void | CallbackFriendAdded (const UserInfo &user) |
| A virtual callback that is triggered when a friend UserInfo is added. A UserInfo can be added when UserInfo::GetState() has kState_FriendRequest set for a pending friend request.
|
|
virtual void | CallbackFriendUpdated (const UserInfo &user) |
| A virtual callback that is triggered when a UserInfo is changed.
|
|
virtual void | CallbackStateChange (const int previousState, const int newState) |
| A virtual callback that is triggered when the state changes for this instance.
|
|
virtual void | CallbackGotVariable (const int loginID, const int section, const char *name, const char *value, const VariableAccess access) |
| A virtual callback that is triggered when GetVariable() has read a variable from the server.
|
|
virtual void | CallbackVariableNotFound (const int loginID, const int section, const char *name, const VariableAccess access) |
| A virtual callback that is triggered when GetVariable() has failed to read a variable from the server.
|
|
virtual void | CallbackUserInfoDeleted (const int loginID) |
| A virtual callback that is triggered when the user deletes a user info request.
|
|
virtual void | CallbackUserInfoAdded (const UserInfo &user) |
| A virtual callback that is triggered when a AddUserInfo request has succeeded.
|
|
virtual void | CallbackUserInfoUpdated (const UserInfo &user) |
| A virtual callback that is triggered when a UserInfo is changed.
|
|
virtual void | CallbackChatRoomCreated (const int chatRoomID) |
|
virtual void | CallbackChatRoomEntered (const int chatRoomID) |
|
virtual void | CallbackChatRoomEnterFailed (const int chatRoomID, const Reason reason) |
|
virtual void | CallbackChatRoomLeft (const Reason reason) |
|
virtual void | CallbackChatRoomUserEntered (const UserInfo &user) |
|
virtual void | CallbackChatRoomUserLeft (const RNReplicaNet::RNLobby::UserInfo &user, const Reason reason) |
|
virtual void | CallbackChatRoomMessage (const char *text, const UserInfo &user, const bool whispered, const bool isAdminMessage, const unsigned int flags) |
|
virtual void | CallbackChatRoomKicked (const char *reason, bool banned, const UserInfo &user) |
|
virtual void | CallbackGlobalKicked (const char *reason, bool banned, const UserInfo &user) |
|
virtual void | CallbackPasswordChanged (void) |
|
virtual void | CallbackCannotChangePassword (void) |
|
virtual void | CallbackEmailChanged (void) |
|
virtual void | CallbackCannotChangeEmail (void) |
|
virtual void | CallbackGotUserNonce (const char *userNonce, const int seconds) |
|
virtual void | CallbackNewStatsAvailable (const int lastUpdatedTitleID) |
| A virtual callback that is triggered when the StatServer updates any variables for this user.
|
|
virtual void | CallbackNamesLikeBegin (const char *match, const bool banned) |
|
virtual void | CallbackNamesLike (const UserInfo &user) |
| A virtual callback that is triggered when RequestNamesLike is used.
|
|
virtual void | CallbackNamesLikeEnd (void) |
| A virtual callback that is triggered when RequestNamesLike is used.
|
|
void | CallbackTidy (void) |
|
bool | CallbackPoll (void) |
|
bool | CallbackParseValidMessage (Transport *transport, DynamicMessageHelper &message, const size_t length) |
|
virtual bool | PackageAndSendData (Transport *transport, const DynamicMessageHelper &message) |
| The class mutex is locked during the context of this function.
|
|
virtual bool | CallbackParsePacketData (Transport *transport, void *data, size_t &length, DynamicMessageHelper &result, Entry &entry) |
|
virtual void | CallbackAccepted (Transport *transport) |
| Called when the server accepts a connection or when a non-listen class instance connection gets a first valid reply from the server.
|
|
virtual void | CallbackDisconnected (Transport *transport) |
| Called when the transport is disconnected. This is also called if there is a problem trying to connect. It is therefore possible for a non-listen class instance to receive this callback without a corresponding CallbackAccepted()
|
|
virtual void | CallbackDataReceived (DynamicMessageHelper &message) |
|
virtual void | CallbackDataSend (DynamicMessageHelper &message) |
|
virtual void | CallbackQueryReplyTime (const float seconds) |
|
int | ThreadEntry (void) |
|
void | GenerateNewNonce (void) |
|
int | GetConnectionNOnce (Transport *transport=0, const Entry *entry=0) |
| Gets the connection's NOnce with respect to a Transport.
|
|
int | CalculateConnectionNOnce (Transport *transport) |
|
const Entry * | FindEntry (Transport *transport) |
|
void | DoQuitNow (const int returnCode) |
|
void | CheckQuit (void) |
|
Maintains a connection to the UserServer. This allows access to user accounts, friends and user persistent data for each title.