I just wanted to add to number 2. In addition to possibly getting a partial packet, it’s also possible to get more than one packet in the same read - either multiple whole packets or 1 or more whole plus a partial. Packet terminators, and careful parsing of the data you get are almost required; fixed packet sizes may be another option.
erjm
5
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| UDP problems with #include "spark_disable_cloud.h" | 11 | 2753 | May 31, 2014 | |
|
UDP problem's with simple program. Router side problem? [SOLVED]
|
21 | 9917 | December 3, 2014 | |
| Unreliable UDP: crashes/freezes when sending at high frequency | 28 | 10957 | June 5, 2014 | |
| UDP Broadcast problems with simple application | 30 | 11876 | November 19, 2014 | |
| Local spark core - TCP? Server or Client? | 15 | 4078 | November 29, 2014 |