Hi! I'm updating my InSim C++ library to use the UDP connection method and I don't know what things I should do.
I grabbed an example I had done with MCI packets in which I used TCP, and just run it using an UDP socket. I hadn't tried UDP yet, but it worked just fine.
So, it looks like my library works with UDP, just using the corresponding argument in the initialization call (SOCK_DGRAM instead of SOCK_STREAM). But I wonder is that makes it... I mean, shouldn't I worry a bit abour lost packets or something like that?
This is my first time using UDP and I don't know what I should pay extra attention to.
Anyway, I think that maybe I'll just add UDP for NLP/MCI packets and do no checking at all. But in case I change my mind I'd like to know what to do
I grabbed an example I had done with MCI packets in which I used TCP, and just run it using an UDP socket. I hadn't tried UDP yet, but it worked just fine.
So, it looks like my library works with UDP, just using the corresponding argument in the initialization call (SOCK_DGRAM instead of SOCK_STREAM). But I wonder is that makes it... I mean, shouldn't I worry a bit abour lost packets or something like that?
This is my first time using UDP and I don't know what I should pay extra attention to.
Anyway, I think that maybe I'll just add UDP for NLP/MCI packets and do no checking at all. But in case I change my mind I'd like to know what to do