Diego Nieto Cid, le Wed 16 Sep 2015 22:12:19 +0000, a écrit :
> I'm not sure you can service two files with the same translator instance, at
> least with the settrans tool.

You can, see /servers/socket/{2,26} or /dev/[pt]typ0.  The trick is to
tell each entry where the other entry is as a command-line option.

> Except for how to know which one the send right was obtained from in
> the translator when a message from a client comes?

term is probably easier to have a look at: see the file_set_translator
call in hurd/term/main.c.  The idea is that the translator attaches
itself as an active translator on the other node.  Since it explicitly
create another control port, it can serve things differently there.

> What comes to mind, is that a translator can serve a directory and the nodes
> inside it. The console does it, IIRC.

Yes.  Perhaps it'd be easier.

Samuel

Reply via email to