Exemple #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;
 }
        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;
        }
Exemple #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;
        }
Exemple #4
0
 public RpcReply(RpcVerifier verifier, RpcAcceptStatus acceptErrorStatus)
     : base(memberSerializers)
 {
     this.status        = RpcReplyStatus.Accepted;
     this.acceptedReply = new RpcAcceptedReply(verifier, acceptErrorStatus);
 }
Exemple #5
0
 public RpcReply(RpcVerifier verifier)
     : base(memberSerializers)
 {
     this.status        = RpcReplyStatus.Accepted;
     this.acceptedReply = new RpcAcceptedReply(RpcVerifier.None);
 }
Exemple #6
0
 public RpcAcceptedReply(RpcVerifier verifier)
     : base(memberSerializers)
 {
     this.verifier = verifier;
     this.status   = RpcAcceptStatus.Success;
 }