i want to read from input stream when i connect to a server socket. but there may exist some delays between messages how can i read from input stream without busy loop ?
string mes = socketReader.readLine();
above line returns null when no input provided in socket input stream. i want to be notified somehow when a message is ready in input stream.
tnx