I have a unix socket server:
s = socket(AF_UNIX, SOCK_DGRAM)
s.bind(socket_name)
while True:
data, addr = s.recvfrom(0x1000)
s.sendto(process(data), addr)
This does not work, it seems addr
is an empty string.
How can I make this send the response back? I do not want the clients having to name the client socket.
I could use SOCK_STREAM
with listen
and accept
but I want message based delivery and not stream based.