Esempio n. 1
0
 public RpcCall(RpcProgramHeader programHeader, UInt32 procedure,
                RpcCredentials credentials, RpcVerifier verifier)
     : base(memberSerializers)
 {
     this.programHeader = programHeader;
     this.procedure     = procedure;
     this.credentials   = credentials;
     this.verifier      = verifier;
 }
Esempio n. 2
0
        public RpcTcpClientConnection(Socket socket, RpcProgramHeader programHeader,
                                      RpcCredentials credentials, RpcVerifier verifier)
        {
            this.socket        = socket;
            this.programHeader = programHeader;

            this.credentials = credentials;
            this.verifier    = verifier;

            this.nextTransactionID = 0;
        }
Esempio n. 3
0
        public RpcAcceptedReply(RpcVerifier verifier, RpcAcceptStatus status)
            : base(memberSerializers)
        {
            if (status == RpcAcceptStatus.Success)
            {
                throw new ArgumentOutOfRangeException("[FunctionMisuse] This constructor is meant to create an Rpc reply to indicate an error but you passed the success value?");
            }
            if (status == RpcAcceptStatus.ProgramMismatch)
            {
                throw new ArgumentOutOfRangeException("[FunctionMisuse] This constructor is not meant to create a program mismatch error");
            }

            this.verifier = verifier;
            this.status   = status;
        }
Esempio n. 4
0
 public RpcReply(RpcVerifier verifier, RpcAcceptStatus acceptErrorStatus)
     : base(memberSerializers)
 {
     this.status        = RpcReplyStatus.Accepted;
     this.acceptedReply = new RpcAcceptedReply(verifier, acceptErrorStatus);
 }
Esempio n. 5
0
 public RpcReply(RpcVerifier verifier)
     : base(memberSerializers)
 {
     this.status        = RpcReplyStatus.Accepted;
     this.acceptedReply = new RpcAcceptedReply(RpcVerifier.None);
 }
Esempio n. 6
0
 public RpcAcceptedReply(RpcVerifier verifier)
     : base(memberSerializers)
 {
     this.verifier = verifier;
     this.status   = RpcAcceptStatus.Success;
 }