Changeset 8122 in project


Ignore:
Timestamp:
02/03/08 19:05:22 (12 years ago)
Author:
sjamaan
Message:

Improve docs on record procedures slightly

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wiki/9p

    r8118 r8122  
    291291Allocate a handle on the connection.  This returns a handle object which you can query with the following procedures:
    292292
    293   9p:handle-connection
    294   9p:handle-fid
    295   9p:handle-position
    296   9p:handle-iounit
     293  procedure: (9p:handle-connection handle)
     294  procedure: (9p:handle-fid handle)
     295  procedure: (9p:handle-position handle)
     296  procedure: (9p:handle-iounit handle)
    297297
    298298The fid is allocated from an internal pool of free fids.  The position is initialized to 0, and used as an offset for read/write procedures (the server does not keep track of this for us in the 9p protocol).
     
    358358
    359359You can of course query and modify the message objects with the following procedures:
    360   9p:message?
    361   9p:message-type
    362   9p:message-type-set!
    363   9p:message-tag
    364   9p:message-tag-set!
    365   9p:message-contents
    366   9p:message-contents-set!
     360  procedure: (9p:message? object)
     361  procedure: (9p:message-type message)
     362  procedure: (9p:message-type-set! message new-type)
     363  procedure: (9p:message-tag message)
     364  procedure: (9p:message-tag-set! message new-tag)
     365  procedure: (9p:message-contents message)
     366  procedure: (9p:message-contents-set! message new-contents)
    367367
    368368===== 9p:send-message
     
    382382A QID is an unique identifier for a file on the server; two QIDs are the same iff they point to the same file.  A QID has three fields which can be queried with the following procedures:
    383383
    384   procedure: (9p:qid-type)
    385   procedure: (9p:qid-version)
    386   procedure: (9p:qid-path)
     384  procedure: (9p:qid-type qid)
     385  procedure: (9p:qid-version qid)
     386  procedure: (9p:qid-path qid)
    387387
    388388You can create a QID using the {{make-9p:qid}} procedure:
Note: See TracChangeset for help on using the changeset viewer.