Possible found a strange issue on readDatagram.

The following code works fine on desktop or Nokia N8 Belle.
But the sender QhostAddress is null on 808 pureview.

Is there any workaround?



mSocket = new QUdpSocket(this);
mSocket->bind(QHostAddress::Any, mLocalUdpPort);
connect(mSocket, SIGNAL(readyRead()), this, SLOT(newUdpData()), Qt:irectConnection);

void newUdpData()
{
while (mSocket->hasPendingDatagrams()) {
QByteArray datagram;
datagram.resize(mSocket->pendingDatagramSize());
QHostAddress sender;
quint16 senderPort;
mSocket->readDatagram(datagram.data(), datagram.size(), &sender, &senderPort);
if(sender.isNull())
qDebug("sender empty");
else
handleMessage(datagram, sender);
}
}