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

SQL Anywhere 11.0.1 (中文) » MobiLink - 服务器启动的同步 » 设置服务器启动的同步

 

监听器

监听器是在设备上运行的程序。它从通告程序接收推式通知,然后启动操作。使用网关进行服务器启动的同步时,监听器可以将设备跟踪信息上载到统一数据库。

另请参见
示例

以下命令启动 Windows 设备的 MobiLink 监听器实用程序:

dblsn -v2 -m -ot dblsn.log
    -l "poll_connect='host=localhost';
    poll_key=sis_user1;
    poll_every=10;
    subject=sync;
    action='start dbmlsync.exe 
        -c eng=rem1;uid=DBA;pwd=sql
        -ot dbmlsyncOut.txt -qc';"

此命令加载监听器并将详细程度级别设置为 2,启用消息记录,并指定服务器位于 localhost。在将输出写入 dblsn.log 文件之前,将截断该文件。监听器每隔 10 秒轮询一次推式通知。如果监听器接收到主题名为 sync 的推式通知,则将启动 MobiLink 客户端应用程序。

有关 Windows 监听器命令行选项的详细信息,请参见用于 Windows 的监听器选项


消息处理程序