porter/libsrc/porter/thread/potrRecvThread.h

1 ファイル

1.1 porter/libsrc/porter/thread/potrRecvThread.h

受信スレッド内部ヘッダー。

1.1.1 作者

c-modernization-kit sample team

1.1.2 バージョン

1.0.0

1.1.3 日付

2026/03/04

1.1.4 インクルード元

potrRecvThread.h のインクルード元

1.1.5 著作権

Copyright (C) CompanyName, Ltd. 2026. All rights reserved.

2 関数

2.1 comm_recv_thread_start

int comm_recv_thread_start ( struct PotrContext_ *ctx )

非 TCP 受信スレッドを起動します。

2.1.1 引数

  • ctx [in,out] セッションコンテキストへのポインタ。

2.1.2 戻り値

成功時は POTR_SUCCESS、失敗時は POTR_ERROR を返します。

2.2 comm_recv_thread_stop

int comm_recv_thread_stop ( struct PotrContext_ *ctx )

非 TCP 受信スレッドを停止します。

2.2.1 引数

  • ctx [in,out] セッションコンテキストへのポインタ。

2.2.2 戻り値

成功時は POTR_SUCCESS、失敗時は POTR_ERROR を返します。

2.3 tcp_recv_thread_start

int tcp_recv_thread_start ( struct PotrContext_ *ctx, int path_idx )

TCP 受信スレッドを path ごとに起動します。

2.3.1 引数

  • ctx [in,out] セッションコンテキストへのポインタ。
  • path_idx [in] パスインデックス (0 ~ n_path-1)。

2.3.2 戻り値

成功時は POTR_SUCCESS、失敗時は POTR_ERROR を返します。

2.4 tcp_recv_thread_stop

int tcp_recv_thread_stop ( struct PotrContext_ *ctx, int path_idx )

TCP 受信スレッドの終了を待機します。

スレッドの停止はソケットクローズ (connect スレッド側) で行います。 本関数は join のみを担当します。

2.4.1 引数

  • ctx [in,out] セッションコンテキストへのポインタ。
  • path_idx [in] パスインデックス (0 ~ n_path-1)。

2.4.2 戻り値

成功時は POTR_SUCCESS、失敗時は POTR_ERROR を返します。