I
IDandT
Hi,
I am writing a small program that connect to IRC. I create
a TCPClient connection and i use stream to read and write
data. It works ok, but i have a problem reading from stream.
while(true){
inputLine = reader.ReadLine ();
if ( inputLine != null )
{
....
....
}
}
If the read stream is empty the program wait at ReadLine
( i think that is waiting for a new data, but also i think that it should
return -1). I need that it not stops at ReadLine. Any idea?
thanks
IDandT
I am writing a small program that connect to IRC. I create
a TCPClient connection and i use stream to read and write
data. It works ok, but i have a problem reading from stream.
while(true){
inputLine = reader.ReadLine ();
if ( inputLine != null )
{
....
....
}
}
If the read stream is empty the program wait at ReadLine
( i think that is waiting for a new data, but also i think that it should
return -1). I need that it not stops at ReadLine. Any idea?
thanks
IDandT