Cinder-Asio icon indicating copy to clipboard operation
Cinder-Asio copied to clipboard

UDP packets lost or corrupted

Open videovse opened this issue 7 years ago • 0 comments

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?

videovse avatar Apr 14 '17 11:04 videovse