I'm doing my first experiments with rF2 plugins: I managed to create a socket to send data via UDP to my server and, when I call sendto() from UpdateTelemetry, the sim constantly sends the data I want. When I put the sendto() inside of UpdateScoring, instead, the server socket always reach its timeout and never gets the package that I'm sending from rF2. Is there anything I'm missing? From what I read in the Example.cpp file, UpdateScoring now runs twice a second, while my timeout is set to trigger if the server does not receive anything for more than 3 seconds.
UpdateScoring is called 5 times per second (in rF1 it was originally once, then twice, while in rF2 it's now 5 times - honestly not sure when that happened). I take it you're returning true from WantsScoringUpdates() ?
I think that is the problem: I didn't check carefully enough Example.hpp, as such I thought every function in Example.cpp was running (except for the one returning false). I'll do some tests tomorrow, but I think you nailed it, thank you.