Cenny Active Member Licensed User Longtime User Sep 30, 2020 #1 Hello, What happens when I send data via an AsyncStream in prefix mode, and the number of bytes do not match with the prefix. Will there be a timeout at some stage or does the app keep waiting? Cenny
Hello, What happens when I send data via an AsyncStream in prefix mode, and the number of bytes do not match with the prefix. Will there be a timeout at some stage or does the app keep waiting? Cenny
Erel B4X founder Staff member Licensed User Longtime User Sep 30, 2020 #2 There is no timeout in AsyncStreams. Upvote 0
Cenny Active Member Licensed User Longtime User Sep 30, 2020 #4 one more question. if I close the stream, will the buffer be emptied or destroyed Upvote 0
Erel B4X founder Staff member Licensed User Longtime User Sep 30, 2020 #5 The Error or Terminated events will be raised and you will need to initialize AStreams again before you can reuse it. Upvote 0
The Error or Terminated events will be raised and you will need to initialize AStreams again before you can reuse it.
Erel B4X founder Staff member Licensed User Longtime User Sep 30, 2020 #6 Note that with TCP, the communication channel is reliable. If data is somehow lost then the connection will break. Upvote 0
Note that with TCP, the communication channel is reliable. If data is somehow lost then the connection will break.