Contents Index HotSync parameters HTTP stream parameters pdf/preface.pdf

UltraLite User's Guide
  UltraLite Reference
    Synchronization stream parameters

TCP/IP stream parameters


The TCP/IP synchronization stream is accessible from C/C++ applications by using the ULSocketStream() function , or from Java applications by using the UlSocketStream object.

Synchronization stream parameters for the TCP/IP stream are chosen from the following table:

Parameter Description
client_port=nnnnn

client_port=nnnnn-mmmmm

A range of client ports for communication. If only one value is specified, the end of the range is 100 greater than the initial value, for a total of 101 ports.

The option can be useful for clients inside a firewall communicating with a MobiLink synchronization server outside the firewall.

host=hostname The host name or IP number for the machine on which the MobiLink synchronization server is running. The default value is localhost, except on Windows CE.

For Windows CE, the default setting corresponds to the desktop machine where the CE device's cradle is connected, which is stored as the ipaddr entry in the registry folder Comm\Tcpip\Hosts\ppp_peer. Do not use localhost, which refers to the device itself, on Windows CE.

For the Palm Computing Platform, the default value of localhost refers to the device itself. You should supply an explicit host name or IP address to connect to a desktop machine.

keep_alive In some circumstances, MobiLink worker threads become unavailable when connections disappear during synchronization. These blocked worker threads are waiting for replies from the MobiLink client. If all worker threads reach this state, MobiLink cannot process synchronizations. Similarly, MobiLink clients can become blocked if the connection disappears.

The keep_alive parameter manages liveness. The default is 1 (On). Set the parameter to 0 (Off) to disable liveness checking for this connection.

port=portnumber The socket port number on the host machine. The port number must be a decimal number that matches the port the MobiLink synchronization server is setup to monitor. The default value for the port parameter is 2439, which is the IANA registered port number for the MobiLink synchronization server.

Contents Index HotSync parameters HTTP stream parameters pdf/preface.pdf