On 10/04/2017 10:13 AM, Richard Öhlinger wrote:

I do bind to QHostAddress::AnyIPv4 and I get all the messages, but just not destinationAddress/Port.

After looking at the implementation in qnativesocketengine_win.cpp i see that QNativeSocketEnginePrivate::nativeReceiveDatagram does not set the destinationAddress/Port [1] whereas qnativesocketengine_unix.cpp does set it. [2]

Also the tst_QUdpSocket [3] does not test the functionality based on the documentation [4] There would have to be some #if(def) or if statements.

Regards,

Richard


[1]https://code.woboq.org/qt5/qtbase/src/network/socket/qnativesocketengine_win.cpp.html#1275

[2]https://code.woboq.org/qt5/qtbase/src/network/socket/qnativesocketengine_unix.cpp.html#978

[3]https://code.woboq.org/qt5/qtbase/tests/auto/network/socket/qudpsocket/tst_qudpsocket.cpp.html#1474

[4] https://doc.qt.io/qt-5/qnetworkdatagram.html#feature-support

_______________________________________________
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest

Reply via email to