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)); }
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)); }
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); }
public RpcDeniedReply(int xid, RpcReply.ReplyState replyState, RpcDeniedReply.RejectState rejectState, Verifier verifier) : base(xid, replyState, verifier) { this.rejectState = rejectState; }
public _RpcReply_44(int baseArg1, RpcReply.ReplyState baseArg2, Verifier baseArg3 ) : base(baseArg1, baseArg2, baseArg3) { }
internal RpcAcceptedReply(int xid, RpcReply.ReplyState state, Verifier verifier, RpcAcceptedReply.AcceptState acceptState) : base(xid, state, verifier) { this.acceptState = acceptState; }
internal RpcReply(int xid, RpcReply.ReplyState state, Verifier verifier) : base(xid, RpcMessage.Type.RpcReply) { this.replyState = state; this.verifier = verifier; }