Please,post how and when you call the readDatagram function.