From mboxrd@z Thu Jan 1 00:00:00 1970 To: 9fans@cse.psu.edu Subject: Re: [9fans] Porting to plan9 / PF_UNIX From: "Russ Cox" Date: Sat, 14 Apr 2007 13:28:28 -0400 In-Reply-To: <45219fb00704141015if096876h1d5621b925fad1a@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Message-Id: <20070414172803.615971E8C26@holo.morphisms.net> Topicbox-Message-UUID: 47fa41d8-ead2-11e9-9d60-3106f5b1d025 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