thanks stephen,i think i get you
you meant to say reader.readline() is a varying
string with time..
and by doing this---message=reader.readLine(),the message variable will be assigned a value whatever it read first and the infinite loop keeps sending the same message again and again infinitely..