Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.

SQL Anywhere 11.0.1 (中文) » UltraLite - 数据库管理和参考 » UltraLite 用作 MobiLink 客户端 » UltraLite 同步参数和网络协议选项 » UltraLite 的同步参数

 

Ping 同步参数

确认 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_synch_info info;
// ...
info.ping = ul_true;