Discussion:
[9fans] devdrawserver
(too old to reply)
marius a. eriksen
2012-04-24 17:57:00 UTC
Permalink
I've found myself in need of running acme on one machine, but devdraw
on another. Since p9p devdraw isn't a file server, exporting and
importing the devdraw server isn't something you can do without extra
help: that's where devdrawserver comes in:

https://github.com/mariusaeriksen/devdrawserver

it provides a "virtual" devdraw on the remote machine, and the ability
to attach a real devdraw binary to the stream.

There's a bit of extra code in there, because eventually I might also
add detach/reattach to this (but I haven't really needed it yet).

marius.

*

mk install, then follow the instructions in the README
pmarin
2012-04-24 18:33:58 UTC
Permalink
http://summerofdevdraw.blogspot.com.es/2011/10/9p-srv-experimental-devdraw-for-p9p.html
Post by marius a. eriksen
I've found myself in need of running acme on one machine, but devdraw
on another. Since p9p devdraw isn't a file server, exporting and
importing the devdraw server isn't something you can do without extra
 https://github.com/mariusaeriksen/devdrawserver
it provides a "virtual" devdraw on the remote machine, and the ability
to attach a real devdraw binary to the stream.
There's a bit of extra code in there, because eventually I might also
add detach/reattach to this (but I haven't really needed it yet).
marius.
*
mk install, then follow the instructions in the README
yy
2012-04-24 21:48:13 UTC
Permalink
Post by pmarin
http://summerofdevdraw.blogspot.com.es/2011/10/9p-srv-experimental-devdraw-for-p9p.html
Not quite the same thing, although it could be used to fix marius'
problem too. I will try to clarify what the possibilities are, because
it can be confusing.


In p9p, you usually have (in a X11 system):

application <-> devdraw <-> X


With devdrawserver (IIUC):

app <-> devdrawserver <-(network)-> dialdevdraw <-> devdraw <-> X


With 9p devdraw at
https://bitbucket.org/yiyus/devwsys-prev/src/tip/util/9p-srv.c:

app <-> devdraw <-> 9p files


So, in order to use 9p devdraw, you would need a 9p file server
providing the needed files. This can be done by rio(4) or cons(3),
draw(3) and mouse(3) in a Plan 9 system (including 9vx) or by wsys(4).
The complete picture using wsys would be:

app <-> devdraw <-(9p)-> wsys <-> X


Wsys and the 9p devdraw are a more general solution, but devdrawserver
is more direct and - since it completely avoids 9p - much simpler.

Another advantage of devdrawserver is the possibility to dettach and
reattach to running programs. I was toying with the idea of such a
file server for Plan 9 which could be used by rio and wsys. Although I
never started to write the code I still think it would be very
feasible.
--
- yiyus || JGL .
Loading...