I am writing a program for video transmission - it uses OpenCV for splitting video into frames and then sends them via UDP.
Problem is - when I send I get different results - sometimes only few frames are sent, sometimes they are corrupted. It is weird because I am sending to localhost (127.0.0.1) and there should not be any data loss.
I am sending frames by chuncks, size of each chunk is 10240 bytes.
I also use Winsock 2 with blocking sockets.
What can be a root cause of this problem?