Esempio n. 1
0
        public void StartReceiver()
        {
            var block = new StreamBlock
            {
                ContentType = StreamBlock.ContentTypes.StreamData,
                Data        = new byte[MaxBlockSize],
                TotalBytes  = MaxBlockSize
            };

            OsSocket.BeginReceive(block.Data, 0, block.TotalBytes, 0, ReadAsyncResult, block);
        }
Esempio n. 2
0
 protected abstract void OnReceive(StreamBlock block);