The input stream will block until a packet comes anyway. A while loop is the proper way. You will probably need a seperate
thread for that inputting of data, and I personally like to add another one for output as well. Keeps the GUI responsive.
Also check
Naming [ August 19, 2005: Message edited by: Mr. C Lamont Gilbert ]