Skip to main content

All Questions

1 vote
1 answer
536 views

SOCK_DGRAM socket recv thread-safe?

Are UNIX SOCK_DGRAM sockets thread-safe for recv() method? If multiple threads are calling recv() on socket, are both guaranteed to get one clean UDP packet each or is there a chance of data getting ...
user3740951's user avatar
  • 1,259
4 votes
3 answers
13k views

How to make two-directional unix domain sockets with SOCK_DGRAM?

I am trying to write a simple Unix datagram server/client, and am having some problems. What I want is a server that listens on a datagram socket and sends a reply to every message received, to the ...
fyhuang's user avatar
  • 2,187