System overview: xfNetLink Synergy

Figure 1 shows the primary components of a distributed Synergy application using xfServerPlus and xfNetLink Synergy. The diagram describes two logical machines:

xfNetLink Synergy enables you to use your existing Synergy code without rewriting it, provided that the code is already written in the form of an external subroutine or function. If the routine requires input from or sends messages to the user, or if it might generate untrapped errors, it must be adjusted to work as server‑level logic.

1. xfServerPlus with xfNetLink Synergy.

To access Synergy logic remotely with a Synergy client, you must establish a connection between the client and the server using %RX_START_REMOTE. This routine handles the creation of a socket connection between the Synergy client and a dedicated xfServerPlus session running on the server. The use of a dedicated session means that context is maintained from one remote routine call to the next until a shutdown signal is received. Once the connection has been established, your remote routines are available to the client application.