[Development] Qt's winrt port. Bringing it to dev and questions about networking

Oliver Wolff oliver.wolff at digia.com
Mon Sep 9 14:56:45 CEST 2013


Hi,

as some of you might have heard we are planning to get qtbase's winrt
branch integrated to dev in order to have a tech preview available at 
least for that part of Qt. In order to have it reviewed properly it 
would be awesome if some of you could have a look at the "winrt" topic
branch 
(https://codereview.qt-project.org/#q,status:open+project:qt/qtbase+branch:dev+topic:winrt,n,z)
and review changes there. Every other feedback is of course welcome as well.

We are still struggling with the network part of the code. I am
somewhat lost about how to activate socket notifiers for the port.
It looks like I can listen on ports and connect to servers but
example do not work. Neithger googlesuggest nor fortuneserver/-client
give any output. The WIP network change can be found here
https://codereview.qt-project.org/#change,64822 The approach to handling
sockets changed fundamentally so that mapping the options to the new
approach isn't always trivial.

The part I seem to be struggling with most is activating socket
notifiers as soon as something can be read from/written to a socket.
Handling of these events should done in qnativesocketengine_winrt.cpp 
(about line 417) but I don't know how to trigger something for the
notifiers from there. Ossi suggested to give the information about
data being available back to the event loop and have it handled there
but I could not find a way on how to do that. My issue basically seems
to be that the sockets do not know about their notifiers and I seem
unable to make a connection the other way around. Any input on that
problem would be highly appreciated :)

Thanks,
Olli




More information about the Development mailing list