改成服务端模式

main
Matthew 2 years ago
parent fb3af99e20
commit 46fde2ea5e

@ -307,7 +307,10 @@ int main(int argc, char* argv[])
int i = 0;
is_down = 1;
if (RET_OK != loadServiceEvent()) return 0; // 加载运行配置
if (RET_OK != loadServiceEvent())
{
return 0; // 加载运行配置
}
HTStartBackgroundProcess();
HTInitThreadHandle();
vSetPid(); // 记录PID
@ -319,7 +322,8 @@ int main(int argc, char* argv[])
ht_pthread_create_background(&thread_handle_pingce, thread_pingce_proc, NULL); // 评测数据入库线程
ht_pthread_create_background(&thread_handle_gishold, thread_gis_hold_proc, NULL); // 评测数据入库线程
ht_pthread_create_background(&thread_handle_linkmgr, thread_client_proc, NULL); // 链路管理线程
ht_pthread_create_background(&thread_handle_linkmgr, thread_listen_proc, NULL); // 链路管理线程
// ht_pthread_create_background(&thread_handle_linkmgr, thread_client_proc, NULL); // 链路管理线程
ht_pthread_create_background(&thread_handle_parse, thread_parser_proc, NULL); // 104报文解析线程
ht_pthread_create_background(&thread_handle_timer, thread_Timer_proc, NULL); // 104链路超时管理线程
ht_pthread_create_background(&thread_handle_active, thread_active_proc, NULL); // 104报文应答线程

Loading…
Cancel
Save