Monobit Unity Networking ver.2.8.0 Server API Reference (C++)
MunProxySessionToMasterServer.hpp
Go to the documentation of this file.
1 
7 #ifndef __MUN_PROXY_SESSION_TO_MASTER_SERVER_HPP__
8 #define __MUN_PROXY_SESSION_TO_MASTER_SERVER_HPP__
9 
10 #include <mrs.hpp>
11 #include <stream/MunStream.hpp>
13 
18 {
19 private:
21  static MrsConnection s_pConnectModule;
22 
24  static MrsConnection s_pMasterModule;
25 
27  static uint64 s_CheckTime;
28 
30  static std::string s_MasterConnectAddress;
31 
33  static int32 s_MasterConnectPort;
34 
36  static int32 s_MasterConnectTimeout;
37 
39  static bool s_IsRetryConnect;
40 
41 public:
47  static bool Initialize( MunProxyConfigure& configure );
48 
49 private:
54  static bool Connect();
55 
56 public:
61  static void Update(uint64 updateInterval);
62 
66  static void Finalize();
67 
74  static void Send_Relay_Anything( uint64 clientUid, uint16 payload_type, MunBuffer& buffer );
75 
76 private:
81  static void OnConnectCallback( MrsConnection pMunMaster, void* connection_data );
82 
87  static void OnDisconnectCallback( MrsConnection pMunMaster, void* connection_data );
88 
94  static void OnErrorCallback( MrsConnection pMunMaster, void* connection_data, MrsConnectionError status );
95 
105  static void OnReadRecordCallback( MrsConnection pMunMaster, void* connection_data, uint32 seqnum, uint16 options, uint16 payload_type, const void* payload, uint32 payload_len );
106 };
107 
108 #endif /* __MUN_PROXY_SESSION_TO_MASTER_SERVER_HPP__ */
static void Finalize()
終了処理.
Definition: MunProxySessionToMasterServer.cpp:109
mrs::Buffer の拡張クラス.
Definition: MunBuffer.hpp:17
static void Send_Relay_Anything(uint64 clientUid, uint16 payload_type, MunBuffer &buffer)
mun_masterサーバに対し、MUNクライアントから受信した情報を渡す.
Definition: MunProxySessionToMasterServer.cpp:126
mun_proxy サーバの設定.
Definition: MunProxyConfigure.hpp:29
MUNにおける通信データ情報.
static bool Initialize(MunProxyConfigure &configure)
初期化処理.
Definition: MunProxySessionToMasterServer.cpp:39
static void Update(uint64 updateInterval)
更新処理(個別送信処理).
Definition: MunProxySessionToMasterServer.cpp:82
mun_masterサーバとのネットワーク接続処理クラス.
Definition: MunProxySessionToMasterServer.hpp:17
mun_proxyサーバの設定.