NetBase for MPE Reference Guide

NetBase NFA
6-11
Remote Procedure Calls
The NetBase server process performs operations on a remote system on behalf of a local process.
This typically involves satisfying file and IMAGE database calls for remotely located files. The
server can also satisfy calls to a user written procedure located in a library on a remote system. This
allows a local process to make calls to procedures located on remote systems.
When access to remote procedures is required, the local process calls a special subroutine. The
procedure called by the local process is called NBRPC. The NBRPC procedure is included as part of
the native mode NetBase shell.
The actual remote procedure name and the location of its library are passed to the server through
the local call to NBRPC. The remote procedure will be dynamically loaded by the NMSERVER
program when needed. When a process calls NBRPC, NetBase validates the node number and
requests a remote server. The remote server then loads the remote procedure, and executes it.
Local System
Local System
Remote System
Remote System
NetBase Job
NetBase Job
NetBase Job
NetBase Job
N
N
B
B
S
S
H
H
E
E
L
L
L
L
User
User
App
App
makes
makes
call to
call to
nbrpc
nbrpc
NMSERVER
NMSERVER
XL.PUB.ACCT
XL.PUB.ACCT
User procedure
User procedure
See the following section for procedure calling conventions for NBRPC and for the remote
procedure.