Exemplo n.º 1
0
        private bool ExtractMessage(byte[] buffer, int bytesRead)
        {
            if (buffer != null)
            {
                _readBuffer.Append(Encoding.ASCII.GetChars(buffer, 0, bytesRead));
            }
            var nextMessage = MessageExtractor.Extract(_readBuffer);

            if (nextMessage != null)
            {
                Message = nextMessage;
            }
            return(nextMessage != null);
        }