Exemplo n.º 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;
 }
Exemplo n.º 2
0
 public RawByteClientStream(IRawByteClient client)
 {
     this.disposed     = false;
     this.hasDataEvent = new ManualResetEventSlim();
     this.client       = client;
     this.buffer       = new ResizableCyclicBuffer(4096);
     this.client.Received.Subscribe(DataReceived);
 }