4 ms·
> Now your new network connections will go through remote-host, because a network connection is just reads and writes to files in /net. Wouldn't this then also
by Sebb767 6y ago
> Now your new network connections will go through remote-host, because a network connection is just reads and writes to files in /net.
Wouldn't this then also affect the connection to this remote host used for importing, effectively looping itself?
- floren 6y agoNope, because the connection to that remote host was established when we were using the local host's /net. This is one of the other key features of Plan 9: per-process namespaces (inherited by children). Only programs inheriting the current process's namespace will use the imported network stack: you open a shell, you run "import remote /net" to bring in the remote network stack, then you run your network applications within that shell. Applications in any other shell will use the regular local network stack. After importing /net from the remote host, you could also run `rio` in that shell, which will start a new instance of the GUI nested within that window, in which all applications will use the imported stack.
- Sebb767 6y agoVery interesting. Thanks for the explanation!