diff options
author | Francis Giraldeau <francis.giraldeau@gmail.com> | 2018-09-10 17:35:38 -0400 |
---|---|---|
committer | Itay Grudev <itay-grudev@users.noreply.github.com> | 2018-09-10 22:35:38 +0100 |
commit | 0db27016b0470b989f4fa114ae9dde5aa2a325fa (patch) | |
tree | d6ef50e1ee112a5e9110f36c28b58ea627f70859 /examples/calculator/button.cpp | |
parent | v3.0.12a Removed custom signal handling. (diff) | |
download | singleapplication-0db27016b0470b989f4fa114ae9dde5aa2a325fa.tar.xz |
Async socket processing (#49)3.0.13a
* Process socket events asynchronously
Avoid blocking the event loop using waitForReadyRead(). Instead, process the
initialization in two phases. It was necessary to add a map to keep track of
the state of the initial message processing
Signed-off-by: Francis Giraldeau <francis.giraldeau@nrc-cnrc.gc.ca>
* Fix undefined variable on Windows
The timout variable does not exists in this scope, we can safely remove the
Q_UNUSED.
Signed-off-by: Francis Giraldeau <francis.giraldeau@nrc-cnrc.gc.ca>
* Fix validation logic of initial message
I modified the logic to a positive value, but the modification was incomplete
and caused the initial message to be incorrectly considered as invalid.
Signed-off-by: Francis Giraldeau <francis.giraldeau@nrc-cnrc.gc.ca>
* Use the proper socket when receiving message
The socket variable is a class member, but we really want to use
nextConnSocket when receiving the message in the lambda.
Signed-off-by: Francis Giraldeau <francis.giraldeau@nrc-cnrc.gc.ca>
Diffstat (limited to 'examples/calculator/button.cpp')
0 files changed, 0 insertions, 0 deletions