Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.
指定 MobiLink 服务器的套接字端口号。
port=port-number
对于 TCP/IP,缺省值为 2439,这是 MobiLink 服务器的 IANA 注册端口号。
对于 HTTP,缺省值为 80。
对于 HTTPS,缺省值为 443。
该端口号必须是十进制数,并应与 MobiLink 服务器所监听的端口相匹配。
如果您通过 Web 服务器进行同步,请指定接收 HTTP 或 HTTPS 请求的 Web 服务器端口。
有关如何设置 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";