(RPC Manager Library)
Description: This function returns the mode in which the current server for a specified service is running.
Returns: See comments
Usage: Steady State or subroutine call
Format: \RPCManager\GetServerMode(Service [, OptGUID]);
Parameters: Service { text } { required } { no default }
The name by which the service is known.
OptGUID { text } { optional } { default: (see note) }
An optional parameter indicating the GUID of the application in which the service instance is located. The default is the application to which the caller belongs.
Comments: This subroutine is a member of the RPC Manager's Library, and must therefore be prefaced by \RPCManager\, as shown in the "Format" section. If the application you are developing is a script application, the subroutine call must be prefaced by System\RPCManager\, and the System variable must be declared in AppMod.src.
The mode value represents the current synchronization state of the server for the specified service. Presently, one of the following values may be returned:
\RPC_ACCEPT_ALL – the server is not performing synchronization with any client;
\RPC_SYNC_MODE – the server is performing synchronization with a client; or
\RPC_LINKCONTROL_ONLY – the server is starting synchronization with a client.