c++ - Are Unix multicast sockets thread safe? -
are unix multicast sockets thread safe?
depends on mean thread-safe. appears making calls send() @ same time separate threads not crash program, , data send across network.
the problem if message stretches across more 1 packet. packets may interleave , remote machine sort out 2 interleaved messages.
see: be careful sendmsg() family of functions got are parallel calls send/recv on same socket valid?.
Comments
Post a Comment