0
Answer

Streams

Sebouh Havatian

Sebouh Havatian

17y
1.8k
1

_socket = new TcpClient();

I am connecting to an IP and port using _socket.Connect();

I also have

NetworkStream: _stream = _socketSB.GetStream();

StreamReader: _reader = new StreamReader(_stream, Encoding.ASCII);

string ls_line;

while ((ls_line = _reader.ReadLine()) != null)

{

}

It is taking too much time although I have only 8 lines!!!!

 

ANY IDEAS??