9srv Manual Collection/plan9/srv(3) | 9srv Manual Collection/plan9/srv(3) |
---|
To install a channel, create a new file such as /srv/myserv and then write a text string (suitable for strtoul; see atof(2)) giving the file descriptor number of an open file. Any process may then open /srv/myserv to acquire another reference to the open file that was registered.
An entry in srv holds a reference to the associated file even if no process has the file open. Removing the file from /srv releases that reference.
It is an error to write more than one number into a server file, or to create a file with a name that is already being used.
At this point, any process may open and read /srv/namedpipe to receive the hello string. Data written to /srv/namedpipe can be received by executing
in the above process.
9srv Manual Collection/plan9/srv(3) | Rev: Sun Dec 02 23:42:22 GMT 2007 |