Monobit Unity Networking ver.2.8.0 Server API Reference (C++)
MunRoomSessionToClient.hpp
Go to the documentation of this file.
1 
7 #ifndef __MUN_ROOM_SESSION_TO_CLIENT_HPP__
8 #define __MUN_ROOM_SESSION_TO_CLIENT_HPP__
9 
10 #include <mrs.hpp>
11 #include <stream/MunStream.hpp>
13 
18 {
19 private:
21  static MrsServer s_pTcpModule;
22 
24  static MrsServer s_pUdpModule;
25 
27  static MrsServer s_pWsModule;
28 
30  static MrsServer s_pWssModule;
31 
33  static uint32 s_ClientNum;
34 
35 
36  static STREAM::RoomLoginPlayerRequest s_RoomLoginPlayerRequest;
37  static STREAM::RoomUpdateHostIdRequest s_RoomUpdateHostIdRequest;
38  static STREAM::RoomRPCRequest s_RoomRPCRequest;
39  static STREAM::RoomKickPlayerRequest s_RoomKickPlayerRequest;
40 
41 
42 public:
47  static uint32 GetClientNum() { return s_ClientNum; }
48 
49 public:
55  static bool Initialize( MunRoomConfigure& configure );
56 
61  static void Update(uint64 updateInterval);
62 
66  static void Finalize();
67 
68 private:
74  static void OnNewConnectionCallback( MrsServer pMunRoom, void* server_data, MrsConnection pMunClient );
75 
80  static void OnTcpDisconnectCallback( MrsConnection pMunClient, void* connection_data );
81 
86  static void OnUdpDisconnectCallback( MrsConnection pMunClient, void* connection_data );
87 
92  static void OnWsDisconnectCallback( MrsConnection pMunClient, void* connection_data );
93 
98  static void OnWssDisconnectCallback( MrsConnection pMunClient, void* connection_data );
99 
105  static void OnTcpErrorCallback( MrsConnection pMunClient, void* connection_data, MrsConnectionError status );
106 
112  static void OnUdpErrorCallback( MrsConnection pMunClient, void* connection_data, MrsConnectionError status );
113 
119  static void OnWsErrorCallback( MrsConnection pMunClient, void* connection_data, MrsConnectionError status );
120 
126  static void OnWssErrorCallback( MrsConnection pMunClient, void* connection_data, MrsConnectionError status );
127 
137  static void OnReadRecordCallback( MrsConnection pMunClient, void* connection_data, uint32 seqnum, uint16 options, uint16 payload_type, const void* payload, uint32 payload_len );
138 };
139 
140 #endif /* __MUN_ROOM_SESSION_TO_CLIENT_HPP__ */
MUNクライアントからmun_roomサーバに対して送信される、ホストの変更要求.
Definition: MunStream.hpp:5767
MUN クライアントから送信される、対象プレイヤーの強制退室要求.
Definition: MunStream.hpp:6060
static uint32 GetClientNum()
接続クライアント数の取得.
Definition: MunRoomSessionToClient.hpp:47
static void Update(uint64 updateInterval)
更新処理(個別送信処理).
Definition: MunRoomSessionToClient.cpp:132
MUNにおける通信データ情報.
MUNクライアントからmun_roomサーバに対して送信される、汎用的なRPC送信要求.
Definition: MunStream.hpp:5879
MUNクライアントとのネットワーク接続処理クラス.
Definition: MunRoomSessionToClient.hpp:17
mun_roomサーバの設定.
MUNクライアントからmun_roomサーバに対して送信される、ルームログイン要求.
Definition: MunStream.hpp:5454
static void Finalize()
終了処理.
Definition: MunRoomSessionToClient.cpp:139
static bool Initialize(MunRoomConfigure &configure)
初期化処理.
Definition: MunRoomSessionToClient.cpp:40
mun_room サーバの設定.
Definition: MunRoomConfigure.hpp:28