laygorsv RPC Server

laygorsv packages the LayGO RPC Server as a Win32 console application for Windows. It provides a command-line interface which allows the user to monitor the status of the server.

LayGO RPC Server

Installing laygorsv

laygorsv has no special installation requirements. It is implemented as a single file, laygorsv.exe. Of course, the system RPC libraries and the LayGO devices driver and protocol stack libraries must be installed on the same system.

Starting laygorsv

The command-line syntax for laygorsv is:

laygosrv [-d] [-n] [-r] [-s <stack number>] [cfg file list]

Command-line options are case sensitive.

Command-Line Options
[ -d ] By default, laygorsv allows any client program to shutdown the server. The -d option disables remote shutdown. When the -d option is used, only laygorsv itself can shutdown the server.
[ -n ] By default, laygorsv configures the server to advertise its services using RPC name service. Clients can then use the name service to locate a particular server. Windows NT provides RPC name service, but Windows 9x does not. A server running under Windows 9x can only use name service if it is provided by a Windows NT machine on the same network. Where this is not possible, the -n option tells laygorsv to start the server without using RPC name service.
[ -r ] By default, laygorsv configures, initializes and enables the LayGO protocol stack before starting the RPC server. The stack is then ready to accept open requests as soon as server startup is complete. The -r option tells laygorsv to start the RPC server without configuring or initializing the stack. These tasks are left to a client program, but laygorsv still uninitializes the stack when the server is stopped.
[ -s <stack number> ] By default, laygorsv registers the server with RPC name service as /:./Laygo/Stack0. The -s option tells laygorsv to register the server using a different stack number. This allows clients to choose which server to connect to if more than one is available.
[ cfg file list ] The LayGO protocol stack is configured using the ordered list of files.

Stopping laygorsv

To stop laygorsv, simply press <Ctrl-C>. laygorsv will forcibly disconnect any connected clients and terminate.