ヘルスチェックスレッド内部ヘッダー。
送信者が定周期で PING パケットを送信するスレッドの起動・停止 API。
c-modernization-kit sample team
1.0.0
2026/03/08
Copyright (C) CompanyName, Ltd. 2026. All rights reserved.
int potr_health_thread_start ( struct PotrContext_ *ctx )非 TCP ヘルスチェックスレッドを起動します。
ctx->global.health_interval_ms が 0 の場合は起動しません (POTR_SUCCESS を返します)。
成功時は POTR_SUCCESS、失敗時は POTR_ERROR を返します。
int potr_health_thread_stop ( struct PotrContext_ *ctx )非 TCP ヘルスチェックスレッドを停止します。
成功時は POTR_SUCCESS、失敗時は POTR_ERROR を返します。
int potr_tcp_health_thread_start ( struct PotrContext_ *ctx, int path_idx )TCP ヘルスチェックスレッドを path ごとに起動します。
ctx->global.health_interval_ms が 0 の場合は起動しません (POTR_SUCCESS を返します)。
成功時は POTR_SUCCESS、失敗時は POTR_ERROR を返します。
int potr_tcp_health_thread_stop ( struct PotrContext_ *ctx, int path_idx )TCP ヘルスチェックスレッドを停止します。
成功時は POTR_SUCCESS、失敗時は POTR_ERROR を返します。