Hi. I was about to do my first test on LFS coordinates in IS_MCI packets and I've come to the followign point.
I have been using InSim TCP connection all the time for my previous tests, but I saw in the documentation that there's the possibility to tell InSim to send only the IS_MCI/IS_NLP packets via UDP, while the rest of hte packets would use TCP.
If I want to receive MCI packets every one second this looks the best way to not get too much TCP traffic overhead.
Now this may be a stupid question, but as I'm not much into sockets... would I need t setup two sockets for this? One for the TCP connection and another for the UDP? I guess that's the way, but I just want someone to tell me to make sure.
I'll be doing tests for a couple of hours anyway
I have been using InSim TCP connection all the time for my previous tests, but I saw in the documentation that there's the possibility to tell InSim to send only the IS_MCI/IS_NLP packets via UDP, while the rest of hte packets would use TCP.
If I want to receive MCI packets every one second this looks the best way to not get too much TCP traffic overhead.
Now this may be a stupid question, but as I'm not much into sockets... would I need t setup two sockets for this? One for the TCP connection and another for the UDP? I guess that's the way, but I just want someone to tell me to make sure.
I'll be doing tests for a couple of hours anyway


Now I'll need to create an independent thread to handle all the UDP packets, because tge select() call would make it inappropiate within the main loop. Now I'll need two "main loops" working on different threads, one or TCP packets and one for UDP packets 