If you want a program to serve something for others, there are several ways.
One way would be to write a file server, and register with srv(3) one
end of a pipe
that others could mount. There are plenty of examples in /sys/src/cmd.
I'd suggest to go over the manual seeking for programs that might do something
similar to what you want, and then reading their code.

hth

On 4/14/07, Lluís Batlle <[EMAIL PROTECTED]> wrote:
I'm the developer of a Unix program that may be useful in plan9, and
as an exercise, I'd like it to build in plan9 native.

Now, I've written it assuming POSIX (int signals, PF_UNIX available,
BSD sockets API, ...). I know more or less some details on plan9 (per
process namespaces, network not in a library to link with, notes,
...), but I barely know the 'common' use of the environment.

My concern is that I need some local processes to communicate to a
local server. Now I use a SOCK_STREAM PF_UNIX in a path in /tmp, where
I suppose I can write. I think it's something I can suppose in a POSIX
system, but not in plan9.
How would you connect local processes (which can be launched at any
time) with a central server in plan9? Making that central server serve
a filesystem, where the clients write/read?
If I knew what's the path I should follow, I could think more easily
on a proper API for POSIX and Plan9 for my program.

I may not have not worked in plan9 enough to deserve your attention,
but I hope a quick answer (even in the form of "man ___") will not
take much time.

btw, the program I'd like to be able to run in plan9 is
http://vicerveza.homeunix.net/~viric/soft/ts/ . I wrote it because I
couldn't find anything similar to fit my needs, and maybe in plan9 you
already have something quick-and-useful for that purpose, and 'ts'
would not make any sense in p9 now. That's also something I'd be glad
to know.

Thanks in advance,
Lluís.


Reply via email to