Example #1
0
        public FramedClient(IRawByteClient client)
        {
            this.client = client;
            this.recvBuffer = new ResizableCyclicBuffer(4096);

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

            this.client.Received.Subscribe(ClientReceivedData);
        }