Question: are udp sockets thread safe?
Answer: Yes, sockets are thread-safe, however you have to be careful. ... Having multiple threads receiving data from a socket is usually fine for UDP socket, but doesn't make much sense for TCP sockets most of the time.