ho questo StreamReader:C# Stream.Read con timeout
Boolean read = false;
while (wline!="exit")
{
while (!read || streamReader.Peek() >= 0)
{
read = true;
Console.Write((char)streamReader.Read());
}
wline = Console.ReadLine();
streamWriter.Write(wline+"\r\n");
streamWriter.Flush();
}
Come impostare un timeout per il metodo Read()? grazie
Si tratta di un TCPClient? – dsfgsho