Cinder-Asio
Cinder-Asio copied to clipboard
UDP packets lost or corrupted
Good day! Quick description: I've used Cinder-Asio in my project and in some point get strange results - UDP packets, that my program received, were lost or corrupted. As far it was ArtNet packets, that has "sequence number" field, I can trace if packets lost. I've made some modification in Cinder-Asio sample "MultiUdpServer" to receive and check ArtNet packets, and it works fine. After that I've changed buffer size (as I've done before in my program): instead of calls to seesion->read() in callbacks i've called session->read(MAX_BUFFER_SIZE). And that's point. If MAX_BUFFER_SIZE is 530 bytes or less - everything is works fine, if 540 or greater - packets are lost or corrupted (didn't test values between 530 and 540). Is it ci::Buffer problem? Any ideas?