public MessageRelease SetTransfers(RangeSet value) { _Transfers = value; packing_flags |= 256; Dirty = true; return(this); }
public Acquired SetTransfers(RangeSet value) { _Transfers = value; packing_flags |= 256; Dirty = true; return(this); }
public SessionCommandFragment SetByteRanges(RangeSet value) { _ByteRanges = value; Dirty = true; return(this); }
public SessionConfirmed SetCommands(RangeSet value) { _Commands = value; packing_flags |= 256; Dirty = true; return(this); }
public override void Read(IDecoder dec) { packing_flags = (int)dec.ReadUint16(); if ((packing_flags & 256) != 0) { _Commands = dec.ReadSequenceSet(); } }
public RangeSet Copy() { RangeSet copy = new RangeSet(); foreach (Range r in _ranges) { copy._ranges.Add(r); } return(copy); }
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(); } }
public MessageAccept(RangeSet Transfers, params Option[] options) { SetTransfers(Transfers); 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]); } } }
public SessionGap(RangeSet Commands, params Option[] options) { SetCommands(Commands); 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]); } } }
public void KnownComplete(RangeSet kc) { lock (_processedLock) { RangeSet newProcessed = new RangeSet(); foreach (Range pr in _processed) { foreach (Range kr in kc) { foreach (Range r in pr.Subtract(kr)) { newProcessed.Add(r); } } } _processed = newProcessed; } }
public MessageRelease(RangeSet Transfers, params Option[] options) { SetTransfers(Transfers); for (int i = 0; i < options.Length; i++) { switch (options[i]) { case Option.SET_REDELIVERED: packing_flags |= 512; break; case Option.SYNC: Sync = true; break; case Option.BATCH: Batch = true; break; case Option.NONE: break; default: throw new Exception("invalid option: " + options[i]); } } }
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]); } } }
public SessionCompleted(RangeSet Commands, params Option[] options) { SetCommands(Commands); for (int i = 0; i < options.Length; i++) { switch (options[i]) { case Option.TIMELY_REPLY: packing_flags |= 512; break; case Option.SYNC: Sync = true; break; case Option.BATCH: Batch = true; break; case Option.NONE: break; default: throw new Exception("invalid option: " + options[i]); } } }
public void MessageAccept(RangeSet Transfers, params Option[] options) { Invoke(new MessageAccept(Transfers, options)); }
public SessionCommandFragment(int CommandId, RangeSet ByteRanges) { SetCommandId(CommandId); SetByteRanges(ByteRanges); }
public override void Read(IDecoder dec) { _CommandId = dec.ReadSequenceNo(); _ByteRanges = dec.ReadByteRanges(); }
public IFuture MessageAcquire(RangeSet Transfers, params Option[] options) { return(Invoke(new MessageAcquire(Transfers, options), new ResultFuture())); }
public void MessageRelease(RangeSet Transfers, params Option[] options) { Invoke(new MessageRelease(Transfers, options)); }
public void SessionGap(RangeSet Commands, params Option[] options) { Invoke(new SessionGap(Commands, options)); }
public void SessionKnownCompleted(RangeSet Commands, params Option[] options) { Invoke(new SessionKnownCompleted(Commands, options)); }
public void SessionConfirmed(RangeSet Commands, List <Object> Fragments, params Option[] options) { Invoke(new SessionConfirmed(Commands, Fragments, options)); }
public void MessageReject(RangeSet Transfers, MessageRejectCode Code, String Text, params Option[] options) { Invoke(new MessageReject(Transfers, Code, Text, options)); }
public Acquired(RangeSet Transfers) { SetTransfers(Transfers); }