![]() |
Diarkis C++Client Library API Document
|
Base class that wraps the IDiarkisRoom class for easy use of Room functionality. More...
#include <DiarkisRoomBase.h>
Public Member Functions | |
DiarkisRoomBase () | |
DiarkisRoomBase constructor. More... | |
virtual | ~DiarkisRoomBase () |
DiarkisRoomBase destructor. More... | |
virtual void | SetupTcpRoom (const std::shared_ptr< IDiarkisTcp > &tcp, const std::shared_ptr< LoggerFactory > &loggerFactory, bool bRetry) |
Set up Room with TCP protocol. More... | |
virtual void | SetupUdpRoom (const std::shared_ptr< IDiarkisUdp > &udp, const std::shared_ptr< LoggerFactory > &loggerFactory, const std::shared_ptr< DiarkisP2PBase > &p2pBase, bool bRetry) |
Set up Room with UDP protocol. More... | |
std::shared_ptr< IDiarkisRoom > | GetRoom () |
Get the pointer to IDiarkisRoom class. More... | |
void | SetJoinRoomID (const char *roomID) |
Set the Room ID. More... | |
void | SetJoinRoomID (const std::string &roomID) |
Same as SetJoinRoomID() More... | |
virtual void | SendCreateRoom (uint16_t maxMembers, bool allowEmpty, bool join, uint16_t ttl, uint32_t interval) |
Create a new Room. More... | |
virtual void | SendJoinRoom (const char *uid) |
Join a Room. More... | |
virtual void | SendJoinRoom (const std::string &uid) |
Same as SendJoinRoom(const char*) More... | |
virtual void | SendJoinRoom (const char *roomID, const char *uid) |
Joins the Room with the specified Room ID. More... | |
virtual void | SendJoinRoom (const std::string &roomID, const std::string &uid) |
Same as SendJoinRoom(const char*, const char*) More... | |
virtual void | SendJoinRandomRoom (const char *uid, uint32_t maxMembers, uint16_t ttl, uint32_t interval, bool allowEmpty) |
Join the Room if available, otherwise create a new Room. More... | |
virtual void | SendJoinRandomRoom (const std::string &uid, uint32_t maxMembers, uint16_t ttl, uint32_t interval, bool allowEmpty) |
Same as SendJoinRandomRoom() More... | |
virtual void | SendBroadcastToRoom (const uint8_t *payload, size_t payloadSize, bool reliable) |
Sends a message to all Room members including yourself. More... | |
virtual void | SendBroadcastToRoom (const std::vector< uint8_t > &payload, bool reliable) |
Same as SendBroadcastToRoom() More... | |
virtual void | SendMessageToRoom (const char **memberIDs, size_t memberIDsCount, const uint8_t *payload, size_t payloadSize, bool reliable) |
Sends a message to a specific member who has joined a Room. More... | |
virtual void | SendMessageToRoom (const std::vector< std::string > &memberIDs, const std::vector< uint8_t > &payload, bool reliable) |
Same as SendMessageToRoom() More... | |
virtual void | SendRelay (const uint8_t *payload, size_t payloadSize, bool reliable) |
Sends a message to Room members other than yourself. More... | |
virtual void | SendRelay (const std::vector< uint8_t > &payload, bool reliable) |
Same as SendRelay() More... | |
virtual void | SendRelayTo (const char **memberIDs, size_t memberIDsCount, const uint8_t *payload, size_t payloadSize, bool reliable) |
Sends a message to a specific member participating in a Room. More... | |
virtual void | SendRelayTo (const std::vector< std::string > &memberIDs, const std::vector< uint8_t > &payload, bool reliable) |
Same as SendRelayTo() More... | |
virtual void | SendLeaveRoom (const char *uid) |
Leaving a Room. More... | |
virtual void | SendLeaveRoom (const std::string &uid) |
Same as SendLeaveRoom() More... | |
virtual void | SendFindByTypeRoom (uint32_t roomType, uint32_t limit) |
Searches for Rooms of the same type. More... | |
virtual void | SendRegisterRoom (uint32_t roomType, const char *roomName, const char *roomMetadata) |
Register additional information about the Room you are participating in. More... | |
virtual void | SendRegisterRoom (uint32_t roomType, const std::string &roomName, const std::string &roomMetadata) |
Same as SendRegisterRoom() More... | |
virtual void | SendMigrateRoom (void) |
Move the Room to a different server. More... | |
virtual void | SendGetOwnerID (void) |
Get the Room owner's user ID. More... | |
virtual void | SendGetMemberIDs (void) |
Get a list of user IDs of members participating in a Room. More... | |
virtual void | SendGetNumberOfMembers (void) |
Get the number of members in the Room. More... | |
virtual void | SendUpdateProperties (const std::unordered_map< std::string, std::vector< uint8_t >> &properties, bool sync=false) |
Set Room properties. More... | |
virtual void | SendGetProperties (const char **propertyNames, size_t propertyNamesCount) |
Get Room properties. More... | |
virtual void | SendGetProperties (const std::vector< std::string > &propertyNames) |
Same as SendGetProperties() More... | |
virtual void | SendIncrementProperty (Diarkis::StdString propertyName, int64_t delta, bool sync) |
Increases or decreases the value of the specified Room property. More... | |
virtual void | SendReserveRoom (const char **userIDs, size_t userIDsCount) |
Reserves a member to join a Room. More... | |
virtual void | SendReserveRoom (const std::vector< std::string > &userIDs) |
Same as SendReserveRoom() More... | |
virtual void | SendCancelReservationRoom (const char *cancelRoomID, const char **userIDs, size_t userIDsCount) |
Cancels a Room reservation. More... | |
virtual void | SendCancelReservationRoom (const std::string &cancelRoomID, const std::vector< std::string > &userIDs) |
Same as SendCancelReservationRoom() More... | |
virtual void | SendChatMessage (const char *message) |
Sends a chat message to the Room members. More... | |
virtual void | SendChatMessage (const std::string &message) |
Same as SendChatMessage() More... | |
virtual void | SendGetChatLog (void) |
Retrieve past chat messages. More... | |
virtual void | SendStartP2PSync (uint8_t linkedClients=0) |
Starts P2P communication with the members participating in the Room. More... | |
virtual void | SendUpdateObject (RoomObjectMode mode, const std::string &name, const std::unordered_map< std::string, double > &obj, bool reliable=true) |
Updates the Room object. More... | |
bool | IsJoin () |
Whether or not you are participating in the Room. More... | |
bool | IsFail () |
Whether or not you failed to join the Room. More... | |
bool | IsFind () |
Whether the Room was found by FindRoomsByType. More... | |
bool | IsNotFind () |
Whether the Room was not found by FindRoomsByType. More... | |
bool | IsMigrate () |
Whether the Room is under migration or not. More... | |
bool | IsLeave () |
Whether or not you have left the Room. More... | |
bool | IsReserve () |
Whether you reserved a Room or not. More... | |
Diarkis::StdString | GetRoomID (void) |
Get the Room ID of the Room you are participating in. More... | |
Diarkis::StdString | GetOwnerUID (void) |
Retrieves the user ID of the participating Room owner. More... | |
Diarkis::StdString | GetOwnUID (void) const |
Obtain your own user ID. More... | |
void | SetOwnUID (const char *uid) |
Set your own user ID. More... | |
void | SetOwnUID (const std::string &uid) |
Same as SetOwnUID() More... | |
void | GetRoomMembers (Diarkis::StdVector< Diarkis::StdString > &memberList) |
Get the user IDs of the members of the Room. More... | |
const Diarkis::StdVector< Diarkis::StdString > & | GetRoomMembers () const |
Get the user IDs of the members of the Room. More... | |
Protected Member Functions | |
virtual void | OnRoomCreation (const DiarkisRoomCreationEventArgs &e) |
Callback function called when a Room is created. More... | |
virtual void | OnRoomJoin (const DiarkisRoomJoinEventArgs &e) |
Callback function called when joined a Room. More... | |
virtual void | OnRoomLeave (const DiarkisRoomSuccessEventArgs &e) |
Callback function called when left from a Room. More... | |
virtual void | OnRoomMigrateStart (void) |
Callback function called when a Room migration starts. More... | |
virtual void | OnRoomMigrateComplete (const DiarkisRoomMigrateCompleteEventArgs &e) |
Callback function called when a Room migration is completed. More... | |
virtual void | OnRoomMemberJoin (const DiarkisPayloadEventArgs &e) |
Callback function called when another client joins the Room. More... | |
virtual void | OnRoomMemberLeave (const DiarkisPayloadEventArgs &e) |
Callback function called when a Room member leaves the Room. More... | |
virtual void | OnRoomUpdateProperties (const DiarkisRoomSuccessEventArgs &e) |
Callback function called when properties are updated with UpdateProperties. More... | |
virtual void | OnRoomGetProperties (const DiarkisRoomPropertiesEventArgs &e) |
Callback function called when properties are retrieved with GetProperties. More... | |
virtual void | OnRoomUpdateSyncProperties (const DiarkisRoomPropertiesEventArgs &e) |
Callback function called when properties are updated with UpdateProperties. More... | |
virtual void | OnRoomIncrementProperty (const DiarkisRoomIncrementPropertyEventArgs &e) |
Callback function called when the property is changed with IncrementProperty. More... | |
virtual void | OnRoomIncrementPropertySync (const DiarkisRoomIncrementPropertySyncEventArgs &e) |
Callback function called when the property is changed with IncrementProperty. More... | |
virtual void | OnRoomGetOwnerID (const DiarkisRoomGetOwnerIDEventArgs &e) |
Callback function called when the user ID of a participating Room owner is obtained. More... | |
virtual void | OnRoomMemberIDs (const DiarkisRoomMemberIDsEventArgs &e) |
Callback function called to retrieve the user IDs of participating Room members. More... | |
virtual void | OnRoomNumberOfMembers (const DiarkisRoomNumberOfMembersEventArgs &e) |
Callback function called to get the number of members in a Room. More... | |
virtual void | OnRoomOwnerChange (const DiarkisRoomGetOwnerIDEventArgs &e) |
Callback function called when the Room owner is changed. More... | |
virtual void | OnRoomMemberBroadcast (const DiarkisPayloadEventArgs &e) |
Callback function called when received a Broadcast message. More... | |
virtual void | OnRoomMemberMessage (const DiarkisPayloadEventArgs &e) |
Callback function called when received a message by MessageTo. More... | |
virtual void | OnRoomRelay (const DiarkisPayloadEventArgs &e) |
Callback function called when received a message by Relay. More... | |
virtual void | OnRoomRelayTo (const DiarkisPayloadEventArgs &e) |
Callback function called when received a message by RelayTo. More... | |
virtual void | OnRoomRegister (const DiarkisRoomPayloadEventArgs &e) |
Callback function called when additional information is registered for a participating Room. More... | |
virtual void | OnRoomFindByType (const DiarkisRoomFindByTypeEventArgs &e) |
Callback function called when a FindRoomsByType search result is received. More... | |
virtual void | OnRoomReserve (const DiarkisRoomPayloadEventArgs &e) |
Callback function called when a response to Reserve is received. More... | |
virtual void | OnRoomCancelReserve (const DiarkisRoomPayloadEventArgs &e) |
Callback function called when a response to CancelReservation is received. More... | |
virtual void | OnChatSyncResponse (const DiarkisRoomPayloadEventArgs &e) |
Callback function called when a response to a chat transmission is received. More... | |
virtual void | OnChatSync (const DiarkisRoomChatEventArgs &e) |
Callback function called when chat is received. More... | |
virtual void | OnRoomChatLog (const DiarkisRoomChatLogEventArgs &e) |
Callback function called when a response to GetChatLog is received. More... | |
virtual void | OnStartP2PSync (const DiarkisP2PEventArgs &e) |
StartP2PSyncプッシュ通知を受信したときに呼び出されるコールバック関数 More... | |
virtual void | OnRoomObjectUpdate (const DiarkisRoomObjectUpdateEventArgs &e) |
Callback event called when a UpdateObject push is received. More... | |
virtual void | OnRoomObjectUpdateResponse (const DiarkisRoomObjectUpdateResponseEventArgs &e) |
Callback event called when a response is received to an update of a Room object. More... | |
virtual void | OnOffline () |
Callback event called when the server is ready to shutdown. More... | |
Protected Attributes | |
std::shared_ptr< IDiarkisTcp > | tcp_ |
Pointer to IDiarkisTcp class. More... | |
std::shared_ptr< IDiarkisUdp > | udp_ |
Pointer to IDiarkisUdp class. More... | |
std::shared_ptr< IDiarkisRoom > | room_ |
Pointer to IDiarkisRoom class. More... | |
std::shared_ptr< DiarkisP2PBase > | p2pBase_ |
Pointer to DiarkisP2PBase class. More... | |
std::shared_ptr< IDiarkisLogger > | logger_ |
Pointer to IDiarkisLogger class. More... | |
Diarkis::StdVector< std::function< void()> > | eventUnsubscriptions_ |
Lambda functions list. More... | |
Diarkis::StdString | roomID_ |
Room ID of the participating Room. More... | |
ConnectState | roomConnect_ |
Room state. More... | |
std::recursive_mutex | list_mutex_ |
roomMemberIDs Mutex More... | |
Diarkis::StdVector< Diarkis::StdString > | roomMemberIDs_ |
List of Room members' user IDs. More... | |
Diarkis::StdString | ownUID_ |
自分のユーザーID More... | |
Diarkis::StdString | ownerID_ |
User ID of the Room owner. More... | |
int64_t | createAtServer_ |
The time the Room you are currently in was created on the server. More... | |
bool | bReserved_ |
Whether you reserved a Room or not. More... | |
Base class that wraps the IDiarkisRoom class for easy use of Room functionality.
DiarkisRoomBase::DiarkisRoomBase | ( | ) |
|
virtual |
DiarkisRoomBase destructor.
|
virtual |
Set up Room with TCP protocol.
Register loggers and callback functions.
[in] | tcp | Pointer to IDiarkisTcp class |
[in] | loggerFactory | Pointer to logger class |
[in] | bRetry | Call this function with true when reconnecting after a failed attempt to join a Room. The first call to this function must be false. |
|
virtual |
Set up Room with UDP protocol.
Register loggers and callback functions.
[in] | udp | Pointer to IDiarkisUdp class |
[in] | loggerFactory | Room Log for client library |
[in] | p2pBase | Pointer to DiarkisP2PBase class |
[in] | bRetry | Call this function with true when reconnecting after a failed attempt to join a Room. The first call to this function must be false. |
std::shared_ptr< IDiarkisRoom > DiarkisRoomBase::GetRoom | ( | ) |
Get the pointer to IDiarkisRoom class.
void DiarkisRoomBase::SetJoinRoomID | ( | const char * | roomID | ) |
Set the Room ID.
[in] | roomID | Room ID to set |
void DiarkisRoomBase::SetJoinRoomID | ( | const std::string & | roomID | ) |
|
virtual |
Create a new Room.
A callback event (e.g. OnRoomCreation) registered with GetCreateEvent() will be triggered.
[in] | maxMembers | Maximum number of clients that can join the Room to be created. |
[in] | allowEmpty | Determines if the Room will be held even if none of the clients have joined. |
[in] | join | Determines if the Room will be joined after it is created. true = join the Room after creating it. No Join response is sent from the server. false = only creates the Room. If you want to join the Room, you must perform a separate Join. |
[in] | ttl | Specifies the duration of the Room in seconds after it is empty. Used only when true is specified for allowEmpty. |
[in] | interval | Specifies the interval in milliseconds at which the server processes Broadcast messages, etc. If the value of interval is large, the server load will be reduced, but there will be a delay in receiving messages. If the value of If the value of interval is small, the server load will increase, but the message will be sent immediately from the server. The default value is 200 ms. |
|
virtual |
Join a Room.
Callback event registered with GetJoinEvent() (e.g. OnRoomJoin) will be triggered.
Callback event registered with GetMemberJoinEvent() (e.g. OnRoomMemberJoin) will be triggered on the member of the Room. The user ID specified by uid can be received from the callback event.
[in] | uid | Your user ID |
|
virtual |
|
virtual |
Joins the Room with the specified Room ID.
Callback event registered with GetJoinEvent() (e.g. OnRoomJoin) will be triggered.
Callback event registered with GetMemberJoinEvent() (e.g. OnRoomMemberJoin) will be triggered on the member of the Room.
The user ID specified by uid can be received from the callback event.
[in] | roomID | ID of the Room to join |
[in] | uid | Your user ID |
|
virtual |
|
virtual |
Join the Room if available, otherwise create a new Room.
When a new Room is created, the callback event registered with GetCreateEvent() (e.g. OnRoomCreation) and
callback event registered with GetJoinEvent() (e.g. OnRoomJoin) will be triggered.
Only callback events registered with GetJoinEvent() will be triggered when joining an existing Room.
[in] | uid | your user ID |
[in] | maxMembers | Maximum number of clients that can join the Room to be created. |
[in] | ttl | Duration in seconds after the Room is empty, used only when allowEmpty is set to true. |
[in] | interval | Specifies the interval in milliseconds at which the server processes messages. Messages are sent together at the server for the interval time. If the value of interval is large, the server load will be reduced, but there will be a delay in receiving messages. If the value of interval is small, the server load will increase, but the message will be sent immediately from the server. The default value is 200 ms. |
[in] | allowEmpty | Determines whether or not the client will keep the Room even when no one is joining. |
|
virtual |
|
virtual |
Sends a message to all Room members including yourself.
Triggers a callback event (e.g. OnRoomMemberBroadcast) registered with GetMemberBroadcastEvent().
[in] | payload | Message to be sent |
[in] | payloadSize | Length of the payload |
[in] | reliable | Determines if the message is sent via reliable communication (RUDP); ignored for TCP protocol. |
|
virtual |
|
virtual |
Sends a message to a specific member who has joined a Room.
A callback event (e.g. OnRoomMemberMessage) registered with GetMemberMessageEvent() will be triggered.
[in] | memberIDs | List of user IDs of members to send |
[in] | memberIDsCount | Number of memberID |
[in] | payload | Message to be sent |
[in] | payloadSize | Length of the payload |
[in] | reliable | Determines if the message is sent via reliable communication (RUDP); ignored for TCP protocol. |
|
virtual |
|
virtual |
Sends a message to Room members other than yourself.
Unlike Broadcast, messages are not compiled by the server.
A callback event registered with GetRelayEvent() (e.g. OnRelay) will be triggered.
[in] | payload | Message to be sent |
[in] | payloadSize | Length of the payload |
[in] | reliable | Determines if the message is sent via reliable communication (RUDP); ignored for TCP protocol. |
|
virtual |
|
virtual |
Sends a message to a specific member participating in a Room.
Unlike MessageTo, messages are not compiled by the server.
A callback event (e.g. OnRelayTo) registered with GetRelayToEvent() will be triggered.
[in] | memberIDs | List of user IDs of members to be sent. |
[in] | memberIDsCount | Number of memberID |
[in] | payload | Message to be sent |
[in] | payloadSize | Length of the payload |
[in] | reliable | Determines if the message is sent via reliable communication (RUDP); ignored for TCP protocol. |
|
virtual |
|
virtual |
Leaving a Room.
Callback event (e.g. OnRoomLeave) registered with GetLeaveEvent() will be triggered.
If the exit is successful, a callback event (e.g. OnRoomMemberLeave) registered with GetMemberLeaveEvent()
will be triggered on each member of the Room.
[in] | uid | own user ID |
|
virtual |
|
virtual |
Searches for Rooms of the same type.
Callback events registered with GetFindByTypeEvnet() (e.g. OnRoomFindByType) will be triggered.
In the callback event, you can receive a list of Rooms as a result of the search.
[in] | roomType | Type of Room to search |
[in] | limit | Maximum number of Rooms in the list of search results |
|
virtual |
Register additional information about the Room you are participating in.
Affects searching for a type by FindRoomsByType.
[in] | roomType | Room type |
[in] | roomName | Room name |
[in] | roomMetadata | Extended string of Room |
|
virtual |
|
virtual |
Move the Room to a different server.
Only the Room owner can call this function.
Upon successful execution, a notification is sent from the server to each member of the Room
and the callback event registered with GetMigrateEvent() (e.g. OnRoomMigrate) is triggered.
The library internally leaves from the currently joined Room and joins a new Room to the server.
|
virtual |
Get the Room owner's user ID.
The callback event (e.g. OnGetOwnerID) registered with GetOwnerIDEvent() will be triggered.
|
virtual |
Get a list of user IDs of members participating in a Room.
Callback events (e.g. OnRoomMemberIDs) registered with GetMemberIDSEvent() will be triggered.
|
virtual |
Get the number of members in the Room.
The callback event (e.g. OnRoomNumberOfMembers) registered with GetNumberOfMembersEvent() will be triggered.
|
virtual |
Set Room properties.
The callback event registered with GetUpdatePropertiesEvent() (e.g. OnRoomUpdateProperties) will be triggered.
[in] | properties | Specify properties and data to be registered. |
[in] | sync | Determines if other clients will be notified. |
|
virtual |
Get Room properties.
The callback event (e.g. OnRoomGetProperties) registered with GetGetPropertiesEvent() will be triggered.
[in] | propertyNames | Specify the name of the property to be acquired. |
[in] | propertyNamesCount | Number of property name |
|
virtual |
|
virtual |
Increases or decreases the value of the specified Room property.
Callback events registered with GetIncrementPropertyEvent() (e.g. OnRoomIncrementProperty) will be triggered.
[in] | propertyName | Name of the property to be increased or decreased. |
[in] | delta | Size of the value to be increased or decreased |
[in] | sync | Determines if other clients will be notified. If true, callback events registered with GetIncrementPropertySyncEvent() will be triggered. |
|
virtual |
Reserves a member to join a Room.
A callback event (e.g. OnRoomReserve) registered with GetReserveEvent() will be triggered.
[in] | userIDs | List of user IDs of members to reserve. |
[in] | userIDsCount | Number of user ID |
|
virtual |
|
virtual |
Cancels a Room reservation.
The callback event (e.g. OnRoomReserve) registered with GetCancelReservationEvent() will be triggered.
[in] | cancelRoomID | Room ID of the Room to be canceled |
[in] | userIDs | List of user IDs of members to cancel |
[in] | userIDsCount | Number of user ID |
|
virtual |
|
virtual |
Sends a chat message to the Room members.
Messages are stored on the server and past messages can be retrieved with GetChatLog().
The client executing this function will trigger a callback event (e.g. OnRoomResponseSync) registered with GetChatSyncResponseEvent().
members will trigger callback events (e.g. OnRoomChatSync) registered with GetChatSyncEvent().
[in] | message | Message to be sent |
|
virtual |
|
virtual |
Retrieve past chat messages.
Callback events registered with GetChatLogEvent() (e.g. OnRoomChatLog) will be triggered.
|
virtual |
Starts P2P communication with the members participating in the Room.
Triggers a callback event (e.g. OnStartP2PSync) registered with GetStartP2PSyncEvent().
Receive a list of peer addresses in the callback event.
This function must be executed by only one of the Room members.
[in] | linkedClients | Specifies the number of clients to establish a P2P connection. 0 = Receive addresses of all matched members. n = Receive addresses of n randomly selected members from among the matched members. |
|
virtual |
Updates the Room object.
Successful execution triggers a callback event (e.g. OnRoomObjectUpdate) registered with GetObjectUpdateEvent().
Notification is sent to all members of the Room, including yourself.
[in] | mode | Mode to operate the object. |
[in] | name | Name of the object |
[in] | obj | Specifies an object by a list of keys and values. e.g. obj["x"] = 123.4; e.g. obj["y"] = 567.8; e.g. obj["hp"] = 300.0; If mode is OBJ_DEL_MODE, this parameter is not used because the target object is deleted. |
[in] | reliable | Determines whether to send via reliable communication (RUDP); ignored for TCP protocol. |
bool DiarkisRoomBase::IsJoin | ( | ) |
Whether or not you are participating in the Room.
bool DiarkisRoomBase::IsFail | ( | ) |
Whether or not you failed to join the Room.
bool DiarkisRoomBase::IsFind | ( | ) |
Whether the Room was found by FindRoomsByType.
bool DiarkisRoomBase::IsNotFind | ( | ) |
Whether the Room was not found by FindRoomsByType.
bool DiarkisRoomBase::IsMigrate | ( | ) |
Whether the Room is under migration or not.
bool DiarkisRoomBase::IsLeave | ( | ) |
Whether or not you have left the Room.
bool DiarkisRoomBase::IsReserve | ( | ) |
Whether you reserved a Room or not.
Diarkis::StdString DiarkisRoomBase::GetRoomID | ( | void | ) |
Get the Room ID of the Room you are participating in.
Diarkis::StdString DiarkisRoomBase::GetOwnerUID | ( | void | ) |
Retrieves the user ID of the participating Room owner.
Diarkis::StdString DiarkisRoomBase::GetOwnUID | ( | void | ) | const |
Obtain your own user ID.
void DiarkisRoomBase::SetOwnUID | ( | const char * | uid | ) |
Set your own user ID.
[in] | uid | User ID |
void DiarkisRoomBase::SetOwnUID | ( | const std::string & | uid | ) |
void DiarkisRoomBase::GetRoomMembers | ( | Diarkis::StdVector< Diarkis::StdString > & | memberList | ) |
Get the user IDs of the members of the Room.
[in] | memberList | Array to write the results to |
const Diarkis::StdVector< Diarkis::StdString > & DiarkisRoomBase::GetRoomMembers | ( | ) | const |
Get the user IDs of the members of the Room.
|
protectedvirtual |
Callback function called when a Room is created.
Called when a Room Create response is received from the server.
|
protectedvirtual |
Callback function called when joined a Room.
Called when a Room Join response is received from the server.
|
protectedvirtual |
Callback function called when left from a Room.
Called when a Room Leave response is received from the server.
|
protectedvirtual |
Callback function called when a Room migration starts.
Notified by the server to each member when the Room owner executes Migrate.
|
protectedvirtual |
Callback function called when a Room migration is completed.
|
protectedvirtual |
Callback function called when another client joins the Room.
|
protectedvirtual |
Callback function called when a Room member leaves the Room.
|
protectedvirtual |
Callback function called when properties are updated with UpdateProperties.
|
protectedvirtual |
Callback function called when properties are retrieved with GetProperties.
|
protectedvirtual |
Callback function called when properties are updated with UpdateProperties.
|
protectedvirtual |
Callback function called when the property is changed with IncrementProperty.
|
protectedvirtual |
Callback function called when the property is changed with IncrementProperty.
|
protectedvirtual |
Callback function called when the user ID of a participating Room owner is obtained.
|
protectedvirtual |
Callback function called to retrieve the user IDs of participating Room members.
|
protectedvirtual |
Callback function called to get the number of members in a Room.
|
protectedvirtual |
Callback function called when the Room owner is changed.
|
protectedvirtual |
Callback function called when received a Broadcast message.
|
protectedvirtual |
Callback function called when received a message by MessageTo.
|
protectedvirtual |
Callback function called when received a message by Relay.
|
protectedvirtual |
Callback function called when received a message by RelayTo.
|
protectedvirtual |
Callback function called when additional information is registered for a participating Room.
|
protectedvirtual |
Callback function called when a FindRoomsByType search result is received.
|
protectedvirtual |
Callback function called when a response to Reserve is received.
|
protectedvirtual |
Callback function called when a response to CancelReservation is received.
|
protectedvirtual |
Callback function called when a response to a chat transmission is received.
|
protectedvirtual |
Callback function called when chat is received.
|
protectedvirtual |
Callback function called when a response to GetChatLog is received.
|
protectedvirtual |
StartP2PSyncプッシュ通知を受信したときに呼び出されるコールバック関数
@ ~Japanese
Callback function called when StartP2PSync push notification is received
|
protectedvirtual |
Callback event called when a UpdateObject push is received.
|
protectedvirtual |
Callback event called when a response is received to an update of a Room object.
|
protectedvirtual |
Callback event called when the server is ready to shutdown.
|
protected |
Pointer to IDiarkisTcp class.
|
protected |
Pointer to IDiarkisUdp class.
|
protected |
Pointer to IDiarkisRoom class.
|
protected |
Pointer to DiarkisP2PBase class.
|
protected |
Pointer to IDiarkisLogger class.
|
protected |
Lambda functions list.
|
protected |
Room ID of the participating Room.
|
protected |
Room state.
|
protected |
roomMemberIDs Mutex
|
protected |
List of Room members' user IDs.
|
protected |
自分のユーザーID
~@japanese
My user ID
|
protected |
User ID of the Room owner.
|
protected |
The time the Room you are currently in was created on the server.
|
protected |
Whether you reserved a Room or not.