first, leave the BindFlags away. I dont know if they arent causing the error.
if(m_udpsocket->bind(port))
qDebug("Bind Success");
else
qDebug("Bind Fail");
if(m_udpsocket->bind(port))
qDebug("Bind Success");
else
qDebug("Bind Fail");
To copy to clipboard, switch view to plain text mode
and second you should compile your app with CONFIG += console to see if theres an error with your connect method. your method should look like that:
connect(udpsocket, SIGNAL(readyRead()),
this, SLOT(readDatagram()));
connect(udpsocket, SIGNAL(readyRead()),
this, SLOT(readDatagram()));
To copy to clipboard, switch view to plain text mode
Bookmarks