diff options
author | Nils Jeisecke <nils.jeisecke@saltation.com> | 2021-05-31 16:14:39 +0200 |
---|---|---|
committer | Nils Jeisecke <nils.jeisecke@saltation.com> | 2021-06-01 04:10:53 +0200 |
commit | 25a7b609822f6e8ab9ef6a7850f60c33a8d996f3 (patch) | |
tree | 49ea9772668632a316eddea0bc7bed11dc3efb9c /singleapplication.cpp | |
parent | Add simple acknowledge protocol to ensure the server has received all data (diff) | |
download | singleapplication-25a7b609822f6e8ab9ef6a7850f60c33a8d996f3.tar.xz |
Ensure data sent via SingleApplication::sendMessage is received completely
Whilst the initial "connect" message is framed with a length header,
this was missing for the user data.
Thus there was no guarantee that the message frame was really received
completely on emitting the "receivedMessage" signal.
This change splits the previous "StageConnected" state into
"StageConnectedHeader" and "StageConnectedBody" and does some
refactoring to allow using the same write and read functions as the
"init" messages.
Diffstat (limited to 'singleapplication.cpp')
0 files changed, 0 insertions, 0 deletions