Details
-
Suggestion
-
Resolution: Unresolved
-
P2: Important
-
None
-
None
Description
Considering using DataWriter on the StreamSocket OutputStream instead of the stream directly for QBluetoothSocket as OutputStream will indicate that it has written the data right away although this is not necessarily the case. By using DataWriter it is possible to follow the progress of the writing so we can emit bytesWritten() when they are actually written.
For reference:
https://github.com/microsoft/Windows-universal-samples/blob/master/Samples/BluetoothRfcommChat/cs/Scenario1_ChatClient.xaml.cs#L315 - shows the StreamSocket using a DataWriter
Attachments
Gerrit Reviews
For Gerrit Dashboard: QTBUG-76233 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
268425,1 | QBluetoothSocketPrivateWinRT: Use DataWriter when writing to output stream | dev | qt/qtconnectivity | Status: NEW | 0 | 0 |