Document of c-modernization-kit (porter) 1.0.0
Loading...
Searching...
No Matches
PotrPayloadElem Struct Reference

送信キューの 1 エントリ。ペイロードエレメント 1 個分のデータを保持する。 More...

#include <potrSendQueue.h>

Collaboration diagram for PotrPayloadElem:

Data Fields

PotrPeerId peer_id
 送信先ピア識別子 (N:1 モード用。1:1 モードでは 0)。
uint16_t flags
 ペイロードエレメントフラグ (MORE_FRAG, COMPRESSED など)。
uint16_t payload_len
 ペイロード長 (バイト)。
uint8_t * payload
 ペイロードデータへのポインタ (プールスロット内を指す)。

Detailed Description

送信キューの 1 エントリ。ペイロードエレメント 1 個分のデータを保持する。

外側パケットの構築 (seq_num 付与・window_send_push・sendto) は送信スレッドが行う。
本エントリはペイロードエレメントのデータのみを保持し、再送バッファには登録しない。
payload はキュー初期化時に確保したプールスロットを指す。
N:1 モードでは peer_id が送信先ピアを示す。1:1 モードでは 0。

Definition at line 50 of file potrSendQueue.h.

Field Documentation

◆ peer_id

PotrPeerId PotrPayloadElem::peer_id

送信先ピア識別子 (N:1 モード用。1:1 モードでは 0)。

Definition at line 52 of file potrSendQueue.h.

Referenced by potr_send_queue_init(), potr_send_queue_push(), potr_send_queue_push_wait(), and send_packed_peer_mode().

◆ flags

uint16_t PotrPayloadElem::flags

ペイロードエレメントフラグ (MORE_FRAG, COMPRESSED など)。

Definition at line 53 of file potrSendQueue.h.

Referenced by append_payload_elem(), potr_send_queue_init(), potr_send_queue_push(), potr_send_queue_push_wait(), send_packed_peer_mode(), and send_thread_func().

◆ payload_len

uint16_t PotrPayloadElem::payload_len

◆ payload

uint8_t* PotrPayloadElem::payload

ペイロードデータへのポインタ (プールスロット内を指す)。

Definition at line 55 of file potrSendQueue.h.

Referenced by append_payload_elem(), potr_send_queue_init(), potr_send_queue_push(), and potr_send_queue_push_wait().


The documentation for this struct was generated from the following file: