TCP would definitely be the way to go in this situation. With UDP, there is a chance
that messages will never be delivered, and in this case one undelivered message
sounds like it could cause some trouble. UDP is generally reserved for when a few
lost messages are not important, such as the constant movement of players in a
multiplayer game (where many of these messages are sent per second). TCP ensures
these messages get delivered safely, and if you become disconnected for whatever
reason, you know instantly and can handle it.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.