Beispiel #1
0
 public RawByteClientStream(IRawByteClient client)
 {
     this.disposed = false;
     this.hasDataEvent = new ManualResetEventSlim();
     this.client = client;
     this.buffer = new ResizableCyclicBuffer(4096);
     this.client.Received += DataReceived;
 }
 public RawByteClientStream(IRawByteClient client)
 {
     this.disposed     = false;
     this.hasDataEvent = new ManualResetEventSlim();
     this.client       = client;
     this.buffer       = new ResizableCyclicBuffer(4096);
     this.client.Received.Subscribe(DataReceived);
 }