messages.js 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", { value: true });
  3. exports.RpcRejectedReplyMessage = exports.RpcAcceptedReplyMessage = exports.RpcCallMessage = exports.RpcMismatchInfo = exports.RpcOpaqueAuth = void 0;
  4. class RpcOpaqueAuth {
  5. constructor(flavor, body) {
  6. this.flavor = flavor;
  7. this.body = body;
  8. }
  9. }
  10. exports.RpcOpaqueAuth = RpcOpaqueAuth;
  11. class RpcMismatchInfo {
  12. constructor(low, high) {
  13. this.low = low;
  14. this.high = high;
  15. }
  16. }
  17. exports.RpcMismatchInfo = RpcMismatchInfo;
  18. class RpcCallMessage {
  19. constructor(xid, rpcvers, prog, vers, proc, cred, verf, params = undefined) {
  20. this.xid = xid;
  21. this.rpcvers = rpcvers;
  22. this.prog = prog;
  23. this.vers = vers;
  24. this.proc = proc;
  25. this.cred = cred;
  26. this.verf = verf;
  27. this.params = params;
  28. }
  29. }
  30. exports.RpcCallMessage = RpcCallMessage;
  31. class RpcAcceptedReplyMessage {
  32. constructor(xid, verf, stat, mismatchInfo, results = undefined) {
  33. this.xid = xid;
  34. this.verf = verf;
  35. this.stat = stat;
  36. this.mismatchInfo = mismatchInfo;
  37. this.results = results;
  38. }
  39. }
  40. exports.RpcAcceptedReplyMessage = RpcAcceptedReplyMessage;
  41. class RpcRejectedReplyMessage {
  42. constructor(xid, stat, mismatchInfo, authStat) {
  43. this.xid = xid;
  44. this.stat = stat;
  45. this.mismatchInfo = mismatchInfo;
  46. this.authStat = authStat;
  47. }
  48. }
  49. exports.RpcRejectedReplyMessage = RpcRejectedReplyMessage;
  50. //# sourceMappingURL=messages.js.map