There is nothing in Plan 9 like a named socket.
There is /srv, which is like named pipes (the 
difference is that named sockets distinguish
multiple connections to them).  

If ts were a Plan 9 program, it would present a
file tree that could be manipulated to add things
to the queue or remove them or check their status,
instead of inventing a custom RPC protocol.
Then it would post a fd in /srv for 9P service,
and you'd mount /srv/ts /mnt/ts and then interact
with /mnt/ts via file operations.  (Multiple programs
can mount /srv/ts because the kernel acts as a 
multiplexor for 9P services -- the server sees only
one 9P conversation.)

Russ

Reply via email to