|
Document of c-modernization-kit (porter) 1.0.0
|
受信スレッド内部ヘッダー。 More...
#include "../potrContext.h"Go to the source code of this file.
Functions | |
| int | comm_recv_thread_start (struct PotrContext_ *ctx) |
| 非 TCP 受信スレッドを起動します。 | |
| int | comm_recv_thread_stop (struct PotrContext_ *ctx) |
| 非 TCP 受信スレッドを停止します。 | |
| int | tcp_recv_thread_start (struct PotrContext_ *ctx, int path_idx) |
| TCP 受信スレッドを path ごとに起動します。 | |
| int | tcp_recv_thread_stop (struct PotrContext_ *ctx, int path_idx) |
| TCP 受信スレッドの終了を待機します。 | |
受信スレッド内部ヘッダー。
Definition in file potrRecvThread.h.
|
extern |
非 TCP 受信スレッドを起動します。
| [in,out] | ctx | セッションコンテキストへのポインタ。 |
Definition at line 2980 of file potrRecvThread.c.
References POTR_ERROR, POTR_LOG, POTR_SUCCESS, POTR_TRACE_ERROR, POTR_TRACE_VERBOSE, PotrContext_::recv_thread, recv_thread_func(), PotrContext_::running, PotrContext_::service, and PotrServiceDef::service_id.
Referenced by potrOpenService().
|
extern |
非 TCP 受信スレッドを停止します。
| [in,out] | ctx | セッションコンテキストへのポインタ。 |
Definition at line 3027 of file potrRecvThread.c.
References PotrContext_::n_path, POTR_ERROR, POTR_INVALID_SOCKET, POTR_SUCCESS, PotrContext_::recv_thread, PotrContext_::running, and PotrContext_::sock.
Referenced by potrCloseService().
|
extern |
TCP 受信スレッドを path ごとに起動します。
| [in,out] | ctx | セッションコンテキストへのポインタ。 |
| [in] | path_idx | パスインデックス (0 ~ n_path-1)。 |
Definition at line 3079 of file potrRecvThread.c.
References POTR_ERROR, POTR_LOG, POTR_SUCCESS, POTR_TRACE_ERROR, POTR_TRACE_VERBOSE, PotrContext_::recv_thread, PotrContext_::running, s_tcp_recv_args, PotrContext_::service, PotrServiceDef::service_id, and tcp_recv_thread_func().
Referenced by start_connected_threads().
|
extern |
TCP 受信スレッドの終了を待機します。
スレッドの停止はソケットクローズ (connect スレッド側) で行います。 本関数は join のみを担当します。
| [in,out] | ctx | セッションコンテキストへのポインタ。 |
| [in] | path_idx | パスインデックス (0 ~ n_path-1)。 |
Definition at line 3133 of file potrRecvThread.c.
References POTR_ERROR, POTR_SUCCESS, PotrContext_::recv_thread, and PotrContext_::running.