Specify that the QAnywhere UltraLite Agent should use dynamic addressing of the MobiLink server.
qauagent -xd
When you specify -xd, the QAnywhere UltraLite 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 UltraLite Agent is running.
The QAnywhere application must initialize message store properties that describe the communication protocol and address of the MobiLink server, as well as a relationship to the currently active network interface. As the mobile device switches between different networks, the QAnywhere UltraLite 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=1.2.3.4;port=10997" ); mgr.SetStringStoreProperty( "LAN.CommunicationType", "tcpip" ); mgr.SetStringStoreProperty( "WAN.CommunicationAddress", "host=5.6.7.8;port=7777" ); mgr.SetStringStoreProperty( "WAN.CommunicationType", "tcpip" ); mgr.SetStringStoreProperty( "EL3C589 Ethernet Adapter.type", "LAN" ); mgr.SetStringStoreProperty( "Sierra Wireless AirCard 555 Adapter.type", "WAN" ); |
Send feedback about this page via email or DocCommentXchange | Copyright © 2008, iAnywhere Solutions, Inc. - SQL Anywhere 11.0.0 |