Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.
确认 UltraLite 客户端和 MobiLink 服务器之间的通信。当此参数设置为 true 时,不进行同步。
根据所使用的 API 不同,语法会有所变化。还可以使用 ulsync 设置此参数。
False
布尔值
当 MobiLink 服务器接收到一个 ping 请求时,它便会连接到统一数据库,验证用户,然后将验证用户状态和值发送回客户端。
如果 ping 成功,则 MobiLink 服务器将发出一个信息消息。如果 ping 不成功,它会发出一个错误消息。
如果在 ml_user 系统表中找不到 MobiLink 用户 ID,同时 MobiLink 服务器正在使用命令行选项 -zu+ 运行,则 MobiLink 服务器会将该用户添加到 ml_user。
对于 ping 请求,MobiLink 服务器可能会执行以下脚本(如果存在):
ulsync 可以将此参数按如下方法设置为扩展同步参数:
ulsync -c DBF=myuldb.udb "MobiLinkUid=remoteA;ScriptVersion=2;Ping=True;Stream=http"
UltraLite for C/C++ 应用程序可以按如下方法设置参数:
ul_sync_info info; // ... info.ping = ul_true;