You can use message handlers to handle polling operations. The light weight polling options allow you to specify the location of the server, the Notifier name, the polling frequency, and a poll key. Alternatively, you can use the light weight polling API to specify these properties.
Light weight polling options can be specified by running the MobiLink Listener with the following syntax:
dblsn ... -l "poll_connect=protocol-options; poll_notifier=Notifier-name; poll_key=identifier-string; poll_every=number-of-seconds;..." |
A single message handler can only contain one of each of the following options:
poll_connect Use this option to specify the protocol options required to connect to the server. Alternatively, you can use the dblsn -x option to specify the default protocol options. The poll_connect option overrides the default protocol options for the message handler.
poll_notifier Use this option to specify the Notifier used by the MobiLink server to handle push requests. This option is required since the MobiLink server can host multiple Notifiers.
poll_key Use this option to identify the MobiLink Listener to the Notifier. The MobiLink server uses this value to send push notifications intended for the device. In a typical application, this value should be the remote ID of the device.
poll_every Use this option to specify how often the MobiLink Listener should poll the Notifier. By default, the MobiLink Listener automatically retrieves this value from the MobiLink server. This value is measured in seconds.
Discuss this page in DocCommentXchange.
|
Copyright © 2012, iAnywhere Solutions, Inc. - SQL Anywhere 12.0.1 |