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
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Plan
9 Google Summer of Code" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/plan9-gsoc?hl=en
-~----------~----~----~----~------~----~------~--~---