Document of c-modernization-kit (porter) 1.0.0
Loading...
Searching...
No Matches
ピア ID 予約値

Macros

#define POTR_PEER_NA   ((PotrPeerId)0U)
 ピア ID 未割当を示す予約値。 1:1 モードのコールバックで渡される (ピアの概念がない)。 potrSend() に N:1 モードで指定した場合はエラーを返す。
#define POTR_PEER_ALL   ((PotrPeerId)UINT32_MAX)
 全接続ピアへの一斉送信を指示する予約ピア ID。 N:1 モードでは全アクティブピアへユニキャスト送信する。 1:1 モードでは唯一のピアへの送信として動作する。

Detailed Description

potrSend()peer_id 引数および PotrRecvCallbackpeer_id 引数で使用する予約値です。

Macro Definition Documentation

◆ POTR_PEER_NA

#define POTR_PEER_NA   ((PotrPeerId)0U)

#include </__w/c-modernization-kit/c-modernization-kit/prod/porter/include/porter_type.h>

ピア ID 未割当を示す予約値。 1:1 モードのコールバックで渡される (ピアの概念がない)。 potrSend() に N:1 モードで指定した場合はエラーを返す。

Definition at line 258 of file porter_type.h.

Referenced by bidir_send_thread_func(), check_health_timeout(), main(), notify_connected_tcp(), notify_health_alive(), potr_send_queue_init(), potrDisconnectPeer(), potrSend(), raw_session_disconnect(), recv_deliver(), recv_thread_func(), and reset_all_paths_disconnected().

◆ POTR_PEER_ALL

#define POTR_PEER_ALL   ((PotrPeerId)UINT32_MAX)

#include </__w/c-modernization-kit/c-modernization-kit/prod/porter/include/porter_type.h>

全接続ピアへの一斉送信を指示する予約ピア ID。 N:1 モードでは全アクティブピアへユニキャスト送信する。 1:1 モードでは唯一のピアへの送信として動作する。

Definition at line 261 of file porter_type.h.

Referenced by allocate_peer_id(), potrDisconnectPeer(), and potrSend().