1
Network / UDP transfer is stopping
« on: January 18, 2021, 03:54:04 pm »
Hello, It's my first time working with Network in SFML
In general, I'm trying to send OpenCV cv::Mat by UDP Package, but for now, I'm just trying to get a constant stream of data.
Unfortunately, there's something wrong with my program - or I'm don't quite understand something :<
Sending side (to minimalize errors, I do not use a loop and just execute the sending program a few times):
And receiving side :
After exactly 5 messages, receiving stop and resume only after some time (~minute or two) - which is obviously not good, I have no idea what I'm doing wrong
PS: One more question. Do I understand correctly that if I use sf::Packet then I don't need to be concerned about sf::UdpSocket::MaxDatagramSize?
In general, I'm trying to send OpenCV cv::Mat by UDP Package, but for now, I'm just trying to get a constant stream of data.
Unfortunately, there's something wrong with my program - or I'm don't quite understand something :<
Sending side (to minimalize errors, I do not use a loop and just execute the sending program a few times):
(click to show/hide)
(click to show/hide)
After exactly 5 messages, receiving stop and resume only after some time (~minute or two) - which is obviously not good, I have no idea what I'm doing wrong
PS: One more question. Do I understand correctly that if I use sf::Packet then I don't need to be concerned about sf::UdpSocket::MaxDatagramSize?