コード例 #1
0
 public MessageReject SetCode(MessageRejectCode value)
 {
     _Code          = value;
     packing_flags |= 512;
     Dirty          = true;
     return(this);
 }
コード例 #2
0
 public override void Read(IDecoder dec)
 {
     packing_flags = (int)dec.ReadUint16();
     if ((packing_flags & 256) != 0)
     {
         _Transfers = dec.ReadSequenceSet();
     }
     if ((packing_flags & 512) != 0)
     {
         _Code = MessageRejectCodeGetter.Get(dec.ReadUint16());
     }
     if ((packing_flags & 1024) != 0)
     {
         _Text = dec.ReadStr8();
     }
 }
コード例 #3
0
        public MessageReject(RangeSet Transfers, MessageRejectCode Code, String Text, params Option[] options)
        {
            SetTransfers(Transfers);
            SetCode(Code);
            SetText(Text);

            for (int i = 0; i < options.Length; i++)
            {
                switch (options[i])
                {
                case Option.SYNC: Sync = true; break;

                case Option.BATCH: Batch = true; break;

                case Option.NONE: break;

                default: throw new Exception("invalid option: " + options[i]);
                }
            }
        }
コード例 #4
0
ファイル: Invoker.cs プロジェクト: drzo/opensim4opencog
 public void MessageReject(RangeSet Transfers, MessageRejectCode Code, String Text, params Option[] options) {
     Invoke(new MessageReject(Transfers, Code, Text, options));
 }
コード例 #5
0
 public void MessageReject(RangeSet Transfers, MessageRejectCode Code, String Text, params Option[] options)
 {
     Invoke(new MessageReject(Transfers, Code, Text, options));
 }