Document of c-modernization-kit (porter) 1.0.0
Loading...
Searching...
No Matches
potrSendThread.h File Reference

非同期送信スレッドの内部ヘッダー。 More...

#include "../potrContext.h"
Include dependency graph for potrSendThread.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

int potr_send_thread_start (struct PotrContext_ *ctx)
void potr_send_thread_stop (struct PotrContext_ *ctx)

Detailed Description

非同期送信スレッドの内部ヘッダー。

Author
c-modernization-kit sample team
Date
2026/03/08
Version
1.0.0

送信者 (POTR_ROLE_SENDER) が非ブロッキング送信を使用する場合に起動する 送信スレッドの起動・停止 API。
送信スレッドは送信キュー (PotrSendQueue) からペイロードエレメントを取り出して 外側パケットを構築し sendto を呼び出します。

Definition in file potrSendThread.h.

Function Documentation

◆ potr_send_thread_start()

int potr_send_thread_start ( struct PotrContext_ * ctx)
extern

Definition at line 710 of file potrSendThread.c.

References POTR_ERROR, POTR_SUCCESS, PotrContext_::send_thread, send_thread_func(), PotrContext_::send_thread_running, and PotrContext_::send_window_mutex.

Referenced by potrOpenService(), and start_connected_threads().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ potr_send_thread_stop()

void potr_send_thread_stop ( struct PotrContext_ * ctx)
extern

Definition at line 737 of file potrSendThread.c.

References potr_send_queue_shutdown(), PotrContext_::send_queue, PotrContext_::send_thread, PotrContext_::send_thread_running, and PotrContext_::send_window_mutex.

Referenced by potr_connect_thread_stop(), potrCloseService(), potrOpenService(), and start_connected_threads().

Here is the call graph for this function:
Here is the caller graph for this function: