Monobit Unity Networking ver.2.8.0 Server API Reference (C++)
MunMonitorSession.hpp
Go to the documentation of this file.
1 
7 #ifndef __MUN_MONITOR_SESSION_HPP__
8 #define __MUN_MONITOR_SESSION_HPP__
9 
10 #include <mrs.hpp>
11 #include <stream/MunStream.hpp>
12 #include "config/MunMonitorConfigure.hpp"
13 #include <sstream>
14 
19 {
20 private:
22  static MrsConnection s_Connection;
23 
25  static std::stringstream s_StringStream;
26 
28  static bool s_IsUpdate;
29 
31  static uint32 s_Timeout;
32 
34  static mrs::Time s_EndTime;
35 
36 public:
41  static std::string GetString(){ return s_StringStream.str(); }
42 
43 public:
49  static bool Initialize(MunMonitorConfigure& configure );
50 
55  static bool Update();
56 
60  static void Finalize();
61 
62 private:
68  static void OnConnect( MrsConnection connection, void* connection_data );
69 
75  static void OnDisconnect( MrsConnection connection, void* connection_data );
76 
83  static void OnError( MrsConnection connection, void* connection_data, MrsConnectionError status );
84 
95  static void OnReadRecord( MrsConnection connection, void* connection_data, uint32 seqnum, uint16 options, uint16 payload_type, const void* payload, uint32 payload_len );
96 };
97 
98 #endif /* __MUN_MONITOR_SESSION_HPP__ */
static void Finalize()
終了処理.
Definition: MunMonitorSession.cpp:76
MUNにおける通信データ情報.
static bool Initialize(MunMonitorConfigure &configure)
初期化処理.
Definition: MunMonitorSession.cpp:32
static bool Update()
更新処理(個別送信処理).
Definition: MunMonitorSession.cpp:61
mun_monitor サーバの設定.
Definition: MunMonitorConfigure.hpp:16
static std::string GetString()
文字列の取得.
Definition: MunMonitorSession.hpp:41
ネットワーク接続処理クラス.
Definition: MunMonitorSession.hpp:18