RPC Reply Message

The RPC protocol for a reply message varies depending on whether the call message is accepted or rejected by the network server.

See The Reply to an Accepted Request and The Reply to a Rejected Request.

The reply message to a request contains information to distinguish the following conditions:

  • RPC executed the call message successfully.
  • The remote implementation of RPC is not protocol version 2. The lowest and highest supported RPC version numbers are returned.
  • The remote program is not available on the remote system.
  • The remote program does not support the requested version number. The lowest and highest supported remote program version numbers are returned.
  • The requested procedure number does not exist. This is usually a caller-side protocol or programming error.
The RPC reply message takes the following form:

enum reply_stat stat {
     MSG_ACCEPTED = 0,
     MSG_DENIED   = 1
};

The enum reply_stat discriminant acts as a switch to the rejected or accepted reply message forms.