RPC: Remote Procedure Call Protocol specification: Version 2
Voir toute la rfc dans une seule page
Page : 8 / 25
Télécharger le PDF
Auteur(s) :
Sun Microsystems
Classé sous :
Sun-rpc
RFC 1057 Remote Procedure Call, Version 2 June 1988
that support broadcast protocols only respond when the call is
successfully processed, and are silent in the face of errors.
Broadcast calls use the Port Mapper RPC service to achieve their
semantics. See Appendix A for more information.
8. THE RPC MESSAGE PROTOCOL
This section defines the RPC message protocol in the XDR data
description language [9].
enum msg_type {
CALL = 0,
REPLY = 1
};
A reply to a call message can take on two forms: The message was
either accepted or rejected.
enum reply_stat {
MSG_ACCEPTED = 0,
MSG_DENIED = 1
};
Given that a call message was accepted, the following is the status
of an attempt to call a remote procedure.
enum accept_stat {
SUCCESS = 0, /* RPC executed successfully */
PROG_UNAVAIL = 1, /* remote hasn't exported program */
PROG_MISMATCH = 2, /* remote can't support version # */
PROC_UNAVAIL = 3, /* program can't support procedure */
GARBAGE_ARGS = 4 /* procedure can't decode params */
};
Reasons why a call message was rejected:
enum reject_stat {
RPC_MISMATCH = 0, /* RPC version number != 2 */
AUTH_ERROR = 1 /* remote can't authenticate caller */
};
Sun Microsystems [Page 8]