Example #1
0
 public static RpcMessageHeader Accepted(uint transactionId)
 {
     return(new RpcMessageHeader()
     {
         TransactionId = transactionId,
         ReplyHeader = new RpcReplyHeader()
         {
             Status = RpcReplyStatus.Accepted,
             AcceptReply = new RpcAcceptedReplyHeader()
             {
                 AcceptStatus = RpcAcceptStatus.Success,
                 Verifier = RpcAuthentication.Null()
             }
         }
     });
 }
Example #2
0
 public static RpcMessageHeader ProcedureUnavailable(uint transactionId)
 {
     return(new RpcMessageHeader()
     {
         TransactionId = transactionId,
         ReplyHeader = new RpcReplyHeader()
         {
             Status = RpcReplyStatus.Accepted,
             AcceptReply = new RpcAcceptedReplyHeader()
             {
                 AcceptStatus = RpcAcceptStatus.ProcedureUnavailable,
                 MismatchInfo = new RpcMismatchInfo(),
                 Verifier = RpcAuthentication.Null()
             }
         }
     });
 }
Example #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);
        }