scheme status

0 views
Skip to first unread message

Alex Shinn

unread,
Aug 5, 2009, 6:53:54 AM8/5/09
to plan9...@googlegroups.com
Sorry for the delay. For the final task I'm working on an
easy 9p interface. The basic syntax is:

(postmountsrv name mtpt flags [handlers ...])

where the handlers are keyword-style arguments for the
various requests, e.g.

(define (read-handler req) ...)

(define (write-handler req) ...)

(postmountsrv name mtpt flags
'read: read-handler
'write: write-handler
...)

Alternatively, I may remove the flags argument and also let
those be specified with keywords:

(postmountsrv name mtpt
'after: #t
'create: #t
'read: read-handler
...)

This much is pretty straightforward, though I have to play
games stuffing information in Srv->aux since the Scheme
procedures are closures within a specific VM context. What
I'm working out now is an interface to inspect requests and
send responses. Given time, I'll try also try to provide a
9pfile interface.

--
Alex

Reply all
Reply to author
Forward
0 new messages