I'm having an issue with QT Udp sockets. Assuming all headers are correctly included, I'm writing:
QUdpSocket* s = new QUdpSocket();
bool ok = s->bind(QHostAddress::Any, 8081);
if(!ok)
{
std::cout << "Cannot bind socket: " << s->errorString().toStdString() << std::endl;
}
The output is always Cannot bind socket: operation is not supported
I made several attempts to solve this: tried disabling firewall, tried to bind specifing only the port, searching in internet, but the problem still remain.
My architecture is AMD64, Windows 7 installed