GetServerMode

(RPC Manager Library)

Description: Returns the mode in which the current server for a specified service is running.
Returns: See comments
Usage: Steady State only.
Function Groups: Network
Related to:  
Format: \RPCManager.GetServerMode(Service [, OptGUID]);
Parameters:  
Service
Required. The name by which the service is known.
OptGUID
An optional parameter that is any expression giving the 16-byte binary form of the globally unique identifier (GUID) for 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 AppRoot.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.
  • \RPC_LINKCONTROL_ONLY - the server is starting synchronization with a client.

RPC Manager Service