Specify that the QAnywhere UltraLite Agent should use dynamic addressing of the MobiLink server.
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, and establish a relationship with 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=18.104.22.168;port=10997" ); mgr.SetStringStoreProperty( "LAN.CommunicationType", "tcpip" ); mgr.SetStringStoreProperty( "WAN.CommunicationAddress", "host=22.214.171.124;port=7777" ); mgr.SetStringStoreProperty( "WAN.CommunicationType", "tcpip" ); mgr.SetStringStoreProperty( "EL3C589 Ethernet Adapter.type", "LAN" ); mgr.SetStringStoreProperty( "Sierra Wireless AirCard 555 Adapter.type", "WAN" );
|Envoyer votre avis sur cette page par email.||Copyright © 2009, iAnywhere Solutions, Inc. - SQL Anywhere 11.0.1|