@@ -163,15 +163,15 @@ int main(int argc, char** argv)
163163 if (st_ServiceConfig.nSocksPort > 0 )
164164 {
165165 // 启动心跳
166- if (st_ServiceConfig.st_XTime .nSocksTimeOut > 0 )
166+ if (st_ServiceConfig.st_XTime .nSocksTimeout > 0 )
167167 {
168- xhSocksHeart = SocketOpt_HeartBeat_InitEx (st_ServiceConfig.st_XTime .nSocksTimeOut , st_ServiceConfig.st_XTime .nTimeCheck , Network_Callback_SocksHeart);
168+ xhSocksHeart = SocketOpt_HeartBeat_InitEx (st_ServiceConfig.st_XTime .nSocksTimeout , st_ServiceConfig.st_XTime .nTimeCheck , Network_Callback_SocksHeart);
169169 if (NULL == xhSocksHeart)
170170 {
171171 XLOG_PRINT (xhLog, XENGINE_HELPCOMPONENTS_XLOG_IN_LOGLEVEL_ERROR, _X (" 启动服务中,初始化Socks心跳服务失败,错误:%lX" ), NetCore_GetLastError ());
172172 goto XENGINE_SERVICEAPP_EXIT;
173173 }
174- XLOG_PRINT (xhLog, XENGINE_HELPCOMPONENTS_XLOG_IN_LOGLEVEL_INFO, _X (" 启动服务中,初始化Socks心跳服务成功,时间:%d,次数:%d" ), st_ServiceConfig.st_XTime .nSocksTimeOut , st_ServiceConfig.st_XTime .nTimeCheck );
174+ XLOG_PRINT (xhLog, XENGINE_HELPCOMPONENTS_XLOG_IN_LOGLEVEL_INFO, _X (" 启动服务中,初始化Socks心跳服务成功,时间:%d,次数:%d" ), st_ServiceConfig.st_XTime .nSocksTimeout , st_ServiceConfig.st_XTime .nTimeCheck );
175175 }
176176 else
177177 {
@@ -205,15 +205,15 @@ int main(int argc, char** argv)
205205 if (st_ServiceConfig.nTunnelPort > 0 )
206206 {
207207 // 启动心跳
208- if (st_ServiceConfig.st_XTime .nTunnelTimeOut > 0 )
208+ if (st_ServiceConfig.st_XTime .nTunnelTimeout > 0 )
209209 {
210- xhTunnelHeart = SocketOpt_HeartBeat_InitEx (st_ServiceConfig.st_XTime .nTunnelTimeOut , st_ServiceConfig.st_XTime .nTimeCheck , Network_Callback_TunnelHeart);
210+ xhTunnelHeart = SocketOpt_HeartBeat_InitEx (st_ServiceConfig.st_XTime .nTunnelTimeout , st_ServiceConfig.st_XTime .nTimeCheck , Network_Callback_TunnelHeart);
211211 if (NULL == xhTunnelHeart)
212212 {
213213 XLOG_PRINT (xhLog, XENGINE_HELPCOMPONENTS_XLOG_IN_LOGLEVEL_ERROR, _X (" 启动服务中,初始化Tunnel心跳服务失败,错误:%lX" ), NetCore_GetLastError ());
214214 goto XENGINE_SERVICEAPP_EXIT;
215215 }
216- XLOG_PRINT (xhLog, XENGINE_HELPCOMPONENTS_XLOG_IN_LOGLEVEL_INFO, _X (" 启动服务中,初始化Tunnel心跳服务成功,时间:%d,次数:%d" ), st_ServiceConfig.st_XTime .nTunnelTimeOut , st_ServiceConfig.st_XTime .nTimeCheck );
216+ XLOG_PRINT (xhLog, XENGINE_HELPCOMPONENTS_XLOG_IN_LOGLEVEL_INFO, _X (" 启动服务中,初始化Tunnel心跳服务成功,时间:%d,次数:%d" ), st_ServiceConfig.st_XTime .nTunnelTimeout , st_ServiceConfig.st_XTime .nTimeCheck );
217217 }
218218 else
219219 {
@@ -254,15 +254,15 @@ int main(int argc, char** argv)
254254 }
255255 XLOG_PRINT (xhLog, XENGINE_HELPCOMPONENTS_XLOG_IN_LOGLEVEL_INFO, _X (" 启动服务中,启动Forward组包器成功" ));
256256 // 启动心跳
257- if (st_ServiceConfig.st_XTime .nForwardTimeOut > 0 )
257+ if (st_ServiceConfig.st_XTime .nForwardTimeout > 0 )
258258 {
259- xhForwardHeart = SocketOpt_HeartBeat_InitEx (st_ServiceConfig.st_XTime .nForwardTimeOut , st_ServiceConfig.st_XTime .nTimeCheck , Network_Callback_ForwardHeart);
259+ xhForwardHeart = SocketOpt_HeartBeat_InitEx (st_ServiceConfig.st_XTime .nForwardTimeout , st_ServiceConfig.st_XTime .nTimeCheck , Network_Callback_ForwardHeart);
260260 if (NULL == xhForwardHeart)
261261 {
262262 XLOG_PRINT (xhLog, XENGINE_HELPCOMPONENTS_XLOG_IN_LOGLEVEL_ERROR, _X (" 启动服务中,初始化Forward心跳服务失败,错误:%lX" ), NetCore_GetLastError ());
263263 goto XENGINE_SERVICEAPP_EXIT;
264264 }
265- XLOG_PRINT (xhLog, XENGINE_HELPCOMPONENTS_XLOG_IN_LOGLEVEL_INFO, _X (" 启动服务中,初始化Forward心跳服务成功,时间:%d,次数:%d" ), st_ServiceConfig.st_XTime .nForwardTimeOut , st_ServiceConfig.st_XTime .nTimeCheck );
265+ XLOG_PRINT (xhLog, XENGINE_HELPCOMPONENTS_XLOG_IN_LOGLEVEL_INFO, _X (" 启动服务中,初始化Forward心跳服务成功,时间:%d,次数:%d" ), st_ServiceConfig.st_XTime .nForwardTimeout , st_ServiceConfig.st_XTime .nTimeCheck );
266266 }
267267 else
268268 {
0 commit comments