예제 #1
0
        public bool Equals(RpcCallHeader other)
        {
            if (other == null)
            {
                return(false);
            }

            return(other.Credentials.Equals(Credentials) &&
                   other.Proc == Proc &&
                   other.Program == Program &&
                   other.RpcVersion == RpcVersion &&
                   other.Verifier.Equals(Verifier) &&
                   other.Version == Version);
        }
예제 #2
0
        protected XdrDataWriter StartCallMessage(MemoryStream ms, RpcCredentials credentials, uint procedure)
        {
            XdrDataWriter writer = new XdrDataWriter(ms);

            writer.Write(_client.NextTransactionId());
            writer.Write((int)RpcMessageType.Call);

            RpcCallHeader hdr = new RpcCallHeader();
            hdr.RpcVersion = RpcVersion;
            hdr.Program = (uint)Identifier;
            hdr.Version = (uint)Version;
            hdr.Proc = procedure;
            hdr.Credentials = new RpcAuthentication(credentials ?? new RpcNullCredentials());
            hdr.Verifier = RpcAuthentication.Null();
            hdr.Write(writer); 

            return writer;
        }
예제 #3
0
        protected XdrDataWriter StartCallMessage(MemoryStream ms, RpcCredentials credentials, uint procedure)
        {
            XdrDataWriter writer = new XdrDataWriter(ms);

            writer.Write(_client.NextTransactionId());
            writer.Write((int)RpcMessageType.Call);

            RpcCallHeader hdr = new RpcCallHeader();

            hdr.RpcVersion  = RpcVersion;
            hdr.Program     = (uint)Identifier;
            hdr.Version     = (uint)Version;
            hdr.Proc        = procedure;
            hdr.Credentials = new RpcAuthentication(credentials ?? new RpcNullCredentials());
            hdr.Verifier    = RpcAuthentication.Null();
            hdr.Write(writer);

            return(writer);
        }