U_CLOSE

Close or purge a channel

WTSupported in traditional Synergy on Windows
WNSupported in Synergy .NET on Windows
USupported on UNIX
VSupported on OpenVMS
xcall U_CLOSE(close_channels[, D_PURGE, purge_channels])
xcall U_CLOSE(D_PURGE, purge_channels)

Arguments

close_channels

One or more channels to be closed. If there’s more than one channel, separate them with commas. (n)

D_PURGE

(optional) Purge the following channels. (n)

purge_channels

(optional) One or more channels to be purged. If there’s more than one channel, separate them with commas. (n)

Discussion

U_CLOSE closes or purges one or more channels.

If D_PURGE is not passed, all specified channels are closed.

If D_PURGE is specified, channels that follow it are purged, and if any channels precede it, they are closed.

Examples

In this example, the channel stored in chn is closed:

xcall u_close(chn)

In the following example, the channels stored in chn_1 and chn_2 are closed, and the channel stored in purchn is purged:

xcall u_close(chn_1, chn_2, D_PURGE, purchn)

In the next example, the channels stored in purchn_1 and purchn_2 are purged:

xcall u_close(D_PURGE, purchn_1, purchn_2)