Monobit Unity Networking ver.2.8.0 Server API Reference (C++)
MunResolverSessionToClient.hpp
Go to the documentation of this file.
1 
7 #ifndef __MUN_RESOLVER_SESSION_TO_CLIENT_HPP__
8 #define __MUN_RESOLVER_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 
32 
33  static STREAM::ResolverResolveAddressRequest s_ResolverResolveAddressRequest;
34 
35 
36 public:
42  static bool Initialize( MunResolverConfigure& configure );
43 
48  static void Update(uint64 updateInterval);
49 
53  static void Finalize();
54 
60  static void Send_Resolver_ResolveAddressResult( MrsConnection pMunClient, STREAM::ResolverResolveAddressResponse &response );
61 
62 private:
68  static void OnNewConnectionCallback( MrsServer pMunResolver, void* server_data, MrsConnection pMunClient );
69 
74  static void OnTcpDisconnectCallback( MrsConnection pMunClient, void* connection_data );
75 
80  static void OnUdpDisconnectCallback( MrsConnection pMunClient, void* connection_data );
81 
86  static void OnWsDisconnectCallback( MrsConnection pMunClient, void* connection_data );
87 
92  static void OnWssDisconnectCallback( MrsConnection pMunClient, void* connection_data );
93 
99  static void OnTcpErrorCallback( MrsConnection pMunClient, void* connection_data, MrsConnectionError status );
100 
106  static void OnUdpErrorCallback( MrsConnection pMunClient, void* connection_data, MrsConnectionError status );
107 
113  static void OnWsErrorCallback( MrsConnection pMunClient, void* connection_data, MrsConnectionError status );
114 
120  static void OnWssErrorCallback( MrsConnection pMunClient, void* connection_data, MrsConnectionError status );
121 
131  static void OnReadRecordCallback( MrsConnection pMunClient, void* connection_data, uint32 seqnum, uint16 options, uint16 payload_type, const void* payload, uint32 payload_len );
132 };
133 
134 #endif /* __MUN_RESOLVER_SESSION_TO_CLIENT_HPP__ */
static bool Initialize(MunResolverConfigure &configure)
初期化処理.
Definition: MunResolverSessionToClient.cpp:33
MUNにおける通信データ情報.
MUNクライアントとのネットワーク接続処理クラス.
Definition: MunResolverSessionToClient.hpp:17
mun_resolverサーバの設定.
MUNクライアントからmun_resolverサーバに対して送信される、mun_proxyサーバのアドレス情報取得要求.
Definition: MunStream.hpp:1744
static void Update(uint64 updateInterval)
更新処理(個別送信処理).
Definition: MunResolverSessionToClient.cpp:125
mun_resolver サーバの設定.
Definition: MunResolverConfigure.hpp:28
static void Finalize()
終了処理.
Definition: MunResolverSessionToClient.cpp:133
static void Send_Resolver_ResolveAddressResult(MrsConnection pMunClient, STREAM::ResolverResolveAddressResponse &response)
MUNクライアントに対し、mrs_proxyサーバのクライアント接続情報を渡す.
Definition: MunResolverSessionToClient.cpp:159
mun_resolverサーバからMUNクライアントに対して送信される、mun_proxyサーバのアドレス情報取得結果.
Definition: MunStream.hpp:1800