Neat, thanks!

I recently committed a version that uses a simplified version of the C
program[*] but doesn't need to go through /srv.

Your version of -srv mode is certainly better though!

An interesting idea would be to combine both of your modes: proxy.go
would always create an unique name for /srv, and then print it to
stdout.  A wrapper shell script could then do

proxy | while read i; do
        (
                mount -b $i /dev
                $*
        ) &
done

(Apologies for the unixisms; I couldn't figure out how to read in like
that in rc.)

[*]: None of that threaded copying monkey business I had before; it's
just passed the 9P connection as fd 0 and then calls mount(0, "/dev").

From: Skip Tavakkolian <faribor...@gmail.com>
Subject: Re: webdraw status update 12
Date: Sat, 28 Sep 2013 16:47:13 -0700

> Hi,
> 
> I tweaked  proxy.go a bit and added an rc script so that runweb.c and
> srvcat.c are not needed.  It's a hack, since rfork is not fully supported
> in Go.  The two modes now work:
> 
> ./proxy /bin/games/catclock # and then refresh the page
> 
> or
> 
> ./proyx -srv & # then refresh the page in the browser and run
> ./wrun.rc /srv/webdraw /bin/games/catclock
> 
> -Skip
> 
> 
> 
> On Wed, Sep 25, 2013 at 7:18 PM, David Hoskin <r...@davidrhoskin.com> wrote:
> 
>> Since the last update, I fixed up masked drawing and implemented
>> rudimentary cons support, so you can even sort of interact with the
>> system!  I'm working to make the server automatic, so that web clients
>> can just connect without manual intervention on the Plan 9 host.  Once
>> that works, I want to implement mouse support and make keyboard input
>> useful.
>>
>> Unfortunately, I didn't implement the window-management functions
>> needed to run rio, and there are still various instances of poor
>> design and hacky student code.
>>
>> This project has been great fun, and I learned a whole lot.  Many
>> thanks to my mentor, Erik Quanstrom, for encouraging me when I was
>> intimidated by scary things like compression!
>>
>> A few demo screenshots may be found here:
>> http://davidrhoskin.com/gsoc/2013/img/
>> and the project, now with a bit of documentation, is at:
>> https://bitbucket.org/dhoskin/9webdraw/
>>
>> So long, and thanks for all the fish!
>> -- David
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Plan 9 Google Summer of Code" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to plan9-gsoc+unsubscr...@googlegroups.com.
>> To post to this group, send email to plan9-g...@googlegroups.com.
>> Visit this group at http://groups.google.com/group/plan9-gsoc.
>> For more options, visit https://groups.google.com/groups/opt_out.
>>
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Plan 9 Google Summer of Code" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to plan9-gsoc+unsubscr...@googlegroups.com.
> To post to this group, send email to plan9-g...@googlegroups.com.
> Visit this group at http://groups.google.com/group/plan9-gsoc.
> For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to