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