|
Document of c-modernization-kit (porter) 1.0.0
|
ヘルスチェックスレッド内部ヘッダー。 More...
#include "../potrContext.h"Go to the source code of this file.
Functions | |
| int | potr_health_thread_start (struct PotrContext_ *ctx) |
| 非 TCP ヘルスチェックスレッドを起動します。 | |
| int | potr_health_thread_stop (struct PotrContext_ *ctx) |
| 非 TCP ヘルスチェックスレッドを停止します。 | |
| int | potr_tcp_health_thread_start (struct PotrContext_ *ctx, int path_idx) |
| TCP ヘルスチェックスレッドを path ごとに起動します。 | |
| int | potr_tcp_health_thread_stop (struct PotrContext_ *ctx, int path_idx) |
| TCP ヘルスチェックスレッドを停止します。 | |
ヘルスチェックスレッド内部ヘッダー。
送信者が定周期で PING パケットを送信するスレッドの起動・停止 API。
Definition in file potrHealthThread.h.
|
extern |
非 TCP ヘルスチェックスレッドを起動します。
| [in,out] | ctx | セッションコンテキストへのポインタ。 |
ctx->global.health_interval_ms が 0 の場合は起動しません (POTR_SUCCESS を返します)。
Definition at line 526 of file potrHealthThread.c.
References PotrContext_::global, PotrGlobalConfig::health_interval_ms, PotrContext_::health_mutex, PotrContext_::health_running, PotrContext_::health_thread, health_thread_func(), PotrContext_::health_wakeup, POTR_ERROR, POTR_LOG, POTR_SUCCESS, POTR_TRACE_ERROR, POTR_TRACE_VERBOSE, PotrContext_::service, and PotrServiceDef::service_id.
Referenced by potrOpenService().
|
extern |
非 TCP ヘルスチェックスレッドを停止します。
| [in,out] | ctx | セッションコンテキストへのポインタ。 |
Definition at line 584 of file potrHealthThread.c.
References PotrContext_::health_mutex, PotrContext_::health_running, PotrContext_::health_thread, PotrContext_::health_wakeup, POTR_ERROR, and POTR_SUCCESS.
Referenced by potrCloseService(), and potrOpenService().
|
extern |
TCP ヘルスチェックスレッドを path ごとに起動します。
| [in,out] | ctx | セッションコンテキストへのポインタ。 |
| [in] | path_idx | パスインデックス (0 ~ n_path-1)。 |
ctx->global.health_interval_ms が 0 の場合は起動しません (POTR_SUCCESS を返します)。
Definition at line 629 of file potrHealthThread.c.
References PotrContext_::global, PotrGlobalConfig::health_interval_ms, PotrContext_::health_running, PotrContext_::health_thread, POTR_ERROR, POTR_LOG, POTR_SUCCESS, POTR_TRACE_ERROR, POTR_TRACE_VERBOSE, s_health_args, PotrContext_::service, PotrServiceDef::service_id, and tcp_health_thread_func().
Referenced by start_connected_threads().
|
extern |
TCP ヘルスチェックスレッドを停止します。
| [in,out] | ctx | セッションコンテキストへのポインタ。 |
| [in] | path_idx | パスインデックス (0 ~ n_path-1)。 |
Definition at line 681 of file potrHealthThread.c.
References PotrContext_::health_mutex, PotrContext_::health_running, PotrContext_::health_thread, PotrContext_::health_wakeup, POTR_ERROR, and POTR_SUCCESS.
Referenced by stop_connected_threads().