Welcome, Guest. Please login or register. Did you miss your activation email?

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - LegionPl

Pages: [1]
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):
(click to show/hide)
And receiving side :
(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?

Pages: [1]
anything