|
Document of c-modernization-kit (porter) 1.0.0
|
TCP 接続管理スレッドの内部ヘッダー。 More...
#include "../potrContext.h"Go to the source code of this file.
Functions | |
| int | potr_connect_thread_start (struct PotrContext_ *ctx) |
| TCP 接続管理スレッドを起動します。 | |
| void | potr_connect_thread_stop (struct PotrContext_ *ctx) |
| TCP 接続管理スレッドを停止します。 | |
TCP 接続管理スレッドの内部ヘッダー。
SENDER: TCP connect / 自動再接続ループを管理するスレッドです。
RECEIVER: TCP accept ループを管理するスレッドです。
接続確立後、送受信・ヘルスチェックスレッドを起動します。
Definition in file potrConnectThread.h.
|
extern |
TCP 接続管理スレッドを起動します。
| [in,out] | ctx | セッションコンテキストへのポインタ。 |
TCP 接続管理スレッドを起動します。
| [in,out] | ctx | セッションコンテキストへのポインタ。 |
呼び出し前提:
Definition at line 1084 of file potrConnectThread.c.
References PotrContext_::connect_thread, connect_thread_func(), PotrContext_::connect_thread_running, PotrContext_::global, PotrGlobalConfig::max_payload, PotrContext_::n_path, PACKET_HEADER_SIZE, POTR_ERROR, POTR_LOG, POTR_ROLE_RECEIVER, POTR_SUCCESS, POTR_TRACE_ERROR, POTR_TRACE_VERBOSE, PotrContext_::role, s_connect_args, PotrContext_::service, PotrServiceDef::service_id, PotrContext_::session_establish_mutex, PotrContext_::tcp_first_pkt_buf, and PotrContext_::tcp_first_pkt_len.
Referenced by potrOpenService().
|
extern |
TCP 接続管理スレッドを停止します。
| [in,out] | ctx | セッションコンテキストへのポインタ。 |
| [in,out] | ctx | セッションコンテキストへのポインタ。 |
Definition at line 1183 of file potrConnectThread.c.
References PotrContext_::connect_thread, PotrContext_::connect_thread_running, PotrContext_::n_path, POTR_INVALID_SOCKET, POTR_LOG, POTR_ROLE_RECEIVER, potr_send_thread_stop(), POTR_TRACE_VERBOSE, PotrContext_::role, PotrContext_::service, PotrServiceDef::service_id, PotrContext_::session_establish_mutex, PotrContext_::tcp_conn_fd, PotrContext_::tcp_first_pkt_buf, PotrContext_::tcp_first_pkt_len, PotrContext_::tcp_listen_sock, PotrContext_::tcp_state_cv, and PotrContext_::tcp_state_mutex.
Referenced by potrCloseService().