public FramedClient(IRawByteClient client) { this.client = client; this.recvBuffer = new ResizableCyclicBuffer(4096); this.client.Received += ClientReceivedData; }
public FramedClient(IRawByteClient client) { this.received = new Subject<ArraySegment<byte>>(); this.client = client; this.recvBuffer = new ResizableCyclicBuffer(4096); this.client.Received.Subscribe(ClientReceivedData); }