hi ppl,
in my application, im trying to receive broadcasted data on udp port. the code is as follows:

Qt Code:
  1. #include <QUdpSocket>
  2.  
  3. QUdpSocket *udpSocket;
  4. udpSocket = new QUdpSocket(this);
  5. connect(udpSocket, SIGNAL(readyRead()), this, SLOT(updateData()));
  6. udpSocket->bind(2345,QUdpSocket::DefaultForPlatform);
  7. // udpSocket->bind(QHostAddress::LocalHost,2345) //*** I also tried this option ****//
  8.  
  9. void MyClass::updateData()
  10. {
  11. while(udpSocket->hasPendingDatagrams())
  12. {
  13. bytesRead = udpSocket->readDatagram((char *)charBuf.tData, sizeof(charBuf.tBuf));
  14. // process the data
  15. }
  16.  
  17. }
To copy to clipboard, switch view to plain text mode 

i successfully, compiled the code and my application is running perfectly. im receiving data on port 2345. but once i terminate the application, im getting this message in the console.

QNativeSocketEngine::bind() was not called in QAbstractSocket::UnconnectedState

what does this mean? the application is running perfectly, but im not understanding the msg given there. thanks in advance for ur suggestions.
bye