K
K
Kalombyr2022-02-17 17:46:22
Qt
Kalombyr, 2022-02-17 17:46:22

Lost / broken UDP packets on localhost, as it should be?

Hello.
Two programs communicate with each other via UDP on localhost. One of them is mine, on Qt.
The problem is that the data in the packets is beating.
I thought this could not be possible on localhost, am I mistaken?
Or is the problem in the QUdpSocket itself from Qt ?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
W
Wataru, 2022-02-17
@Kalombyr

Packet loss on localhost can be if there is a lot of data. It's just that the buffer ends somewhere and that's it.
But broken data is already 100% error somewhere in your programs.

S
Sergey Litovko, 2022-03-10
@litovko

Most likely the problem is in the program. Check/change UDP socket settings.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question