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

Author Topic: UDP transfer is stopping  (Read 7320 times)

0 Members and 1 Guest are viewing this topic.

LegionPl

  • Newbie
  • *
  • Posts: 1
    • View Profile
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?

 

anything