Beispiel #1
0
        public async Task <bool> WriteEx(byte[] message, byte[] response)
        {
            await this._stream.WriteAsync(message, 0, message.Length);

            bool result = await TcpMessage.ReadBytes(this._stream, response);

            Interlocked.Increment(ref Writes);
            return(result);
        }