Specify that the QAnywhere Agent should use dynamic addressing of the MobiLink server.
When you specify -xd, the QAnywhere Agent can determine the protocol and address of the MobiLink server based on message store properties. This means that it can dynamically determine the address of a single MobiLink server, where the server address is dependent on the current network that is active for the device where the QAnywhere Agent is running.
The QAnywhere application must initialize message store properties that describe the communication protocol and address of the MobiLink server, and establish a relationship with the currently active network interface. As the mobile device switches between different networks, the QAnywhere Agent detects which network is active and automatically adjusts the communication protocol and address of the MobiLink server—without having to be restarted.
The following example sets properties so that the appropriate MobiLink address is used based on the type of network the device is on. For example, if the device is on a LAN the appropriate LAN address is used.
QAManager mgr; ... mgr.SetStringStoreProperty( "LAN.CommunicationAddress", "host=184.108.40.206;port=10997" ); mgr.SetStringStoreProperty( "LAN.CommunicationType", "tcpip" ); mgr.SetStringStoreProperty( "WAN.CommunicationAddress", "host=220.127.116.11;port=7777" ); mgr.SetStringStoreProperty( "WAN.CommunicationType", "tcpip" ); mgr.SetStringStoreProperty( "EL3C589 Ethernet Adapter.type", "LAN" ); mgr.SetStringStoreProperty( "Sierra Wireless AirCard 555 Adapter.type", "WAN" );
|Discuss this page in DocCommentXchange.
Send feedback about this page using email.
|Copyright © 2009, iAnywhere Solutions, Inc. - SQL Anywhere 11.0.1|