Alljoyn 使用“;AJ_SetIdleTimeout(和总线,10,4)”;?

Alljoyn 使用“;AJ_SetIdleTimeout(和总线,10,4)”;?,alljoyn,Alljoyn,AllJoyn版本:薄内核16.04 aj\allseen\core\ajtcl\test\doorsvc.cc 我试图研究doorsvc示例代码的安全流程。 … AJ_设置空闲时间输出(总线,10,4) 使用“AJ_SetIdleTimeouts(&bus,10,4);”的目的是什么? 还有关于AJ_SetIdleTimeout的详细信息吗 非常感谢AJ_SetIdleTimeouts()是文件中定义的方法。该方法的目的是调整路由节点和瘦客户机之间的空闲超时值。在AJ瘦核心库中,瘦客户机连接一

AllJoyn版本:薄内核16.04 aj\allseen\core\ajtcl\test\doorsvc.cc

我试图研究doorsvc示例代码的安全流程。 … AJ_设置空闲时间输出(总线,10,4)

使用“AJ_SetIdleTimeouts(&bus,10,4);”的目的是什么? 还有关于AJ_SetIdleTimeout的详细信息吗

非常感谢

AJ_SetIdleTimeouts()
是文件中定义的方法。该方法的目的是调整路由节点和瘦客户机之间的空闲超时值。在AJ瘦核心库中,瘦客户机连接一个标准客户机(也称为路由节点),并使用该客户机作为其消息的路由。在此连接过程中,路由节点向瘦客户机发送ping消息,以确保它们已启动并正在运行

您可以在以下位置找到方法声明:

/**
 * Set the idle timeouts from the Routing node to the TCL.
 *
 * @param bus        The bus attachment to which the app is connected to
 * @param idleTo     Requested Idle Timeout for the link. i.e. time after which the Routing node
 *                   must send a DBus ping to Leaf node in case of inactivity.
 *                   Use 0 to leave unchanged.
 * @param probeTo    Requested Probe timeout. The time from the Routing node sending the DBus
 *                   ping to the expected response.
 *                   Use 0 to leave unchanged.
 * @return  Return AJ_Status
 *         - AJ_OK if the request was sent
 *         - An error status otherwise
 */
AJ_EXPORT
AJ_Status AJ_SetIdleTimeouts(AJ_BusAttachment* bus, uint32_t idleTo, uint32_t probeTo);