Monobit Unity Networking ver.2.8.0 Server API Reference (C++)
MunProxySessionToClient.hpp
Go to the documentation of this file.
1 
7 #ifndef __MUN_PROXY_SESSION_TO_CLIENT_HPP__
8 #define __MUN_PROXY_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  static STREAM::ProxyCheckRequest s_ProxyCheckRequest;
36 
37 public:
42  static uint32 GetClientNum() { return s_ClientNum; }
43 
44 public:
50  static bool Initialize( MunProxyConfigure& configure );
51 
56  static void Update(uint64 updateInterval);
57 
61  static void Finalize();
62 
69  static void Send_Relay_Anything( MrsConnection pMunClient, uint16 payload_type, MunBuffer& buffer );
70 
71 private:
77  static void OnNewConnectionCallback( MrsServer pMunProxy, void* server_data, MrsConnection pMunClient );
78 
83  static void OnTcpDisconnectCallback( MrsConnection pMunClient, void* connection_data );
84 
89  static void OnUdpDisconnectCallback( MrsConnection pMunClient, void* connection_data );
90 
95  static void OnWsDisconnectCallback( MrsConnection pMunClient, void* connection_data );
96 
101  static void OnWssDisconnectCallback( MrsConnection pMunClient, void* connection_data );
102 
108  static void OnTcpErrorCallback( MrsConnection pMunClient, void* connection_data, MrsConnectionError status );
109 
115  static void OnUdpErrorCallback( MrsConnection pMunClient, void* connection_data, MrsConnectionError status );
116 
122  static void OnWsErrorCallback( MrsConnection pMunClient, void* connection_data, MrsConnectionError status );
123 
129  static void OnWssErrorCallback( MrsConnection pMunClient, void* connection_data, MrsConnectionError status );
130 
140  static void OnReadRecordCallback( MrsConnection pMunClient, void* connection_data, uint32 seqnum, uint16 options, uint16 payload_type, const void* payload, uint32 payload_len );
141 };
142 
143 #endif /* __MUN_PROXY_SESSION_TO_CLIENT_HPP__ */
static void Update(uint64 updateInterval)
更新処理(個別送信処理).
Definition: MunProxySessionToClient.cpp:129
MUN クライアントから mun_proxy サーバに対して送信される、mun_proxyサーバ認証要求. ...
Definition: MunStream.hpp:2030
mrs::Buffer の拡張クラス.
Definition: MunBuffer.hpp:17
static void Finalize()
終了処理.
Definition: MunProxySessionToClient.cpp:137
mun_proxy サーバの設定.
Definition: MunProxyConfigure.hpp:29
MUNにおける通信データ情報.
static void Send_Relay_Anything(MrsConnection pMunClient, uint16 payload_type, MunBuffer &buffer)
MUNクライアントに対し、mun_masterサーバから受信した情報を渡す.
Definition: MunProxySessionToClient.cpp:164
static bool Initialize(MunProxyConfigure &configure)
初期化処理.
Definition: MunProxySessionToClient.cpp:37
MUNクライアントとのネットワーク接続処理クラス.
Definition: MunProxySessionToClient.hpp:17
mun_proxyサーバの設定.
static uint32 GetClientNum()
接続クライアント数の取得.
Definition: MunProxySessionToClient.hpp:42