GetServer 

(RPC Manager Library)

Description:              This module returns the name of the currently active server for a specified service.

Returns:                    Text

Usage:                       Steady State or subroutine call

Format:                      \RPCManager\GetServer(ServiceName [, OptGUID])

Parameters:             ServiceName     { text }  { required }  { no default }

                                              Any text expression giving the name of the service for which to get the active server's name.

                                    OptGUID     { text }  { optional }  { default:  (see note) }

                                              An optional parameter that provides the GUID of the application in which the service instance is located. The default is the application to which the caller belongs.

Comments:               This module 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.

                             If the 16-byte binary format of the GUID is not known, the GetGUID function may be used to obtain it.

Example:

SName = \RPCManager\GetServer("EditLockoutManager");

See Also:

ConnectToMachine | DisconnectFromMachine | GetServersListed | GetStatus | IsClient | IsPotentialServer | IsPrimaryServer | Register | Send | SetRemoteValue

You may also refer to RPC Manager Service for a listing of Service Control Methods, RPC Methods, and Deprecated RPC Methods.