メッセージ通信マネージャクラス More...
#include <GxP2PMessageManager.h>
Classes | |
struct | GxMessageAll |
メッセージ全体 More... | |
struct | GxMessageHeader |
メッセージヘッダー More... | |
Public Member Functions | |
初期化 | |
GxP2PMessageManager (void) | |
コンストラクタ | |
~GxP2PMessageManager (void) | |
デストラクタ | |
void | initialize (GxP2PSessionManager *pSessionManager) |
初期化 | |
Static Public Attributes | |
定義 | |
static constexpr size_t | INNER_BUFFER_SIZE = GxMath::VALUE_512 |
送信用内部バッファサイズ (byte) | |
static const size_t | MESSAGE_HEADER_SIZE = sizeof(GxMessageHeader) |
メッセージヘッダーサイズ | |
static const size_t | MESSAGE_BODY_MAX = INNER_BUFFER_SIZE - MESSAGE_HEADER_SIZE |
メッセージ本体最大サイズ | |
static const size_t | MESSAGE_QUEUE_BLOCK_NUM = GxMath::VALUE_128 |
メッセージキューブロック数 | |
操作 | |
b32 | sendMessageUnicast (nu32 id, nu32 kind, const void *pData, size_t size) |
メッセージ送信 (ユニキャスト) | |
b32 | sendMessageMulticast (nu32 kind, const void *pData, size_t size) |
メッセージ送信 (マルチキャスト) | |
void | update (void) |
更新処理 (メッセージ受信) | |
b32 | dequeueRecieveQueue (GxP2PMessageManager::GxMessageAll &output) |
受信キュー取得 | |
GX_FORCE_INLINE nu32 | getRecieveQueueNum (void) const |
受信キュー確認 | |
メッセージ通信マネージャクラス
b32 GxP2PMessageManager::dequeueRecieveQueue | ( | GxP2PMessageManager::GxMessageAll & | output | ) |
受信キュー取得
output | [out] 受信データ格納先 |
void GxP2PMessageManager::initialize | ( | GxP2PSessionManager * | pSessionManager | ) |
初期化
pSessionManager | [in] セッションマネージャ |
b32 GxP2PMessageManager::sendMessageMulticast | ( | nu32 | kind, |
const void * | pData, | ||
size_t | size ) |
メッセージ送信 (マルチキャスト)
kind | [in] メッセージ種類 |
pData | [in] パラメータバッファ |
size | [in] パラメータサイズ |
b32 GxP2PMessageManager::sendMessageUnicast | ( | nu32 | id, |
nu32 | kind, | ||
const void * | pData, | ||
size_t | size ) |
メッセージ送信 (ユニキャスト)
id | [in] 送信先ステーションID |
kind | [in] メッセージ種類 |
pData | [in] パラメータバッファ |
size | [in] パラメータサイズ |