Streams

Sep 21 2007 6:56 AM

_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??