ThePentiumGuy
Senior Contributor
Hey guys,
When I read from a stream (TCPClient.GetStream) using StreamReader.ReadLine, it (obviously) waits until it receives some text and then it continues.
Is there any way to do something like:
Streamreader.ReadLineButStopIfTheresNothingToRead ?
My chat program is going really well, just the server seems to hang on this line, and I can't really... do anything else (ex: AddUserWhenTheyConnect()).
-The Pentium Guy
When I read from a stream (TCPClient.GetStream) using StreamReader.ReadLine, it (obviously) waits until it receives some text and then it continues.
Is there any way to do something like:
Streamreader.ReadLineButStopIfTheresNothingToRead ?
My chat program is going really well, just the server seems to hang on this line, and I can't really... do anything else (ex: AddUserWhenTheyConnect()).
-The Pentium Guy