Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.
为运行 MobiLink 服务器的计算机或者运行 Web 服务器的计算机(如果正通过 Web 服务器进行同步)指定主机名或 IP 地址。
host=hostname-or-ip
在 Windows Mobile 上不要使用 localhost,该值是指远程设备本身。缺省值允许 Windows Mobile 设备连接到与其建立了 Microsoft ActiveSync 合作关系的台式计算机上的 MobiLink 服务器。
有关如何设置 dbmlsync 网络协议选项的信息,请参见CommunicationAddress (adr) 扩展选项。
有关如何设置 UltraLite 网络协议选项的信息,请参见UltraLite 同步流的网络协议选项。
在以下示例中,客户端在端口 1234 上连接到名为 myhost 的计算机。
在 SQL Anywhere 客户端上,实现如下:
dbmlsync -e "adr='host=myhost;port=1234'"
对于以嵌入式 SQL 或 C++ 编写的 UltraLite 应用程序,实现如下:
synch_info.stream_parms = "host=myhost;port=1234";