예제 #1
0
        public static RpcAcceptedReply Read(int xid, RpcReply.ReplyState replyState, XDR
                                            xdr)
        {
            Verifier verifier = Verifier.ReadFlavorAndVerifier(xdr);

            RpcAcceptedReply.AcceptState acceptState = RpcAcceptedReply.AcceptState.FromValue
                                                           (xdr.ReadInt());
            return(new RpcAcceptedReply(xid, replyState, verifier, acceptState));
        }
예제 #2
0
        public static RpcDeniedReply Read(int xid, RpcReply.ReplyState replyState, XDR xdr
                                          )
        {
            Verifier verifier = Verifier.ReadFlavorAndVerifier(xdr);

            RpcDeniedReply.RejectState rejectState = RpcDeniedReply.RejectState.FromValue(xdr
                                                                                          .ReadInt());
            return(new RpcDeniedReply(xid, replyState, rejectState, verifier));
        }
예제 #3
0
        public static RpcReply Read(XDR xdr)
        {
            int xid = xdr.ReadInt();

            RpcMessage.Type messageType = RpcMessage.Type.FromValue(xdr.ReadInt());
            Preconditions.CheckState(messageType == RpcMessage.Type.RpcReply);
            RpcReply.ReplyState stat = RpcReply.ReplyState.FromValue(xdr.ReadInt());
            switch (stat)
            {
            case RpcReply.ReplyState.MsgAccepted:
            {
                return(RpcAcceptedReply.Read(xid, stat, xdr));
            }

            case RpcReply.ReplyState.MsgDenied:
            {
                return(RpcDeniedReply.Read(xid, stat, xdr));
            }
            }
            return(null);
        }
예제 #4
0
 public RpcDeniedReply(int xid, RpcReply.ReplyState replyState, RpcDeniedReply.RejectState
                       rejectState, Verifier verifier)
     : base(xid, replyState, verifier)
 {
     this.rejectState = rejectState;
 }
예제 #5
0
 public _RpcReply_44(int baseArg1, RpcReply.ReplyState baseArg2, Verifier baseArg3
                     )
     : base(baseArg1, baseArg2, baseArg3)
 {
 }
예제 #6
0
 internal RpcAcceptedReply(int xid, RpcReply.ReplyState state, Verifier verifier,
                           RpcAcceptedReply.AcceptState acceptState)
     : base(xid, state, verifier)
 {
     this.acceptState = acceptState;
 }
예제 #7
0
 internal RpcReply(int xid, RpcReply.ReplyState state, Verifier verifier)
     : base(xid, RpcMessage.Type.RpcReply)
 {
     this.replyState = state;
     this.verifier   = verifier;
 }