L
L
LiptonOlolo2016-10-19 22:04:37
C++ / C#
LiptonOlolo, 2016-10-19 22:04:37

NetSockets, server not sending all data?

Goodnight. I ran into a problem on a server written on the NetSockets library.
The server almost always sends not all the data.
There are 4 functions that send information to 1 or all users, but usually a couple of "packets" of data are not sent.
No errors from the server side, absolutely. What could be the problem?
I also made 2 new functions for sending data, which stop the thread for 250 ms. after sending the data.
I don't know if this is important or not: the class from where the data is sent (packed) is static.
Also, when receiving data, the server is blocked (lock (server)) so that the data is processed in turn, and not in discord.
a2XV7B3syRWn9r.png
What am I doing wrong? :(
ps- I use VPS, not locally (and locally it also loses data)

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question