The
syncconnect function opens a connection to a server to start a synchronization session. The function has four forms based on the type of connection, with each form described on a separate page:
After a successful connection, call
syncdata and
syncfile to synchronize data and files between the device and the server. When finished transferring data, call
syncdisconnect to close the connection.
Note: If the attempt to establish an internet connection was unsuccessful, CSPro will alert you with an error message. If you wish to preempt this error message in order to handle this situation on your own, use the
Connection Function.
The function returns a logical value of 1 (true) if the connection was successful and 0 (false) otherwise.