(add-child-mapping mapping fid newfid paths)
Adds a new fid that results from a successful walk to the atomic map.
Adds a new fid that results from a successful walk to the atomic map.
(attach-filesystem connection)
(attach-filesystem connection uname)
(attach-filesystem connection uname aname)
Attach a filesystem. Requires a version to be negotiated first.
Attach a filesystem. Requires a version to be negotiated first.
(client! in)
This example client returns a function that will take in frames (without tags) and will automatically handle matching responses for you. Calls to the returned function are a deferred that is delivered when the response is received.
This example client returns a function that will take in frames (without tags) and will automatically handle matching responses for you. Calls to the returned function are a deferred that is delivered when the response is received.
(clone-fid connection fs-handle)
Takes a connection and a fid, and clones it. Returns the new fid.
Takes a connection and a fid, and clones it. Returns the new fid.
(clunk-fid connection fid)
Takes a connection and fid. If successful, returns true.
Takes a connection and fid. If successful, returns true.
(connect host port)
(connect host port uname)
(connect host port uname aname)
Connect to a host on a given port, optionally specifying the user and attaching filesystem. Negotiates the protocol version and attaches the filesystem. Returns a connection map.
Connect to a host on a given port, optionally specifying the user and attaching filesystem. Negotiates the protocol version and attaches the filesystem. Returns a connection map.
(lsdir connection fid)
Takes a connection and a fid. Returns all children within the directory represented by fid.
Takes a connection and a fid. Returns all children within the directory represented by fid.
(negotiate-version connection)
9P version negotiation. Takes a connection map and modifies it appropriately.
9P version negotiation. Takes a connection map and modifies it appropriately.
(next-val a)
Find the smallest integer not currently in the atomic set, add it to the atomic set, and return the added value.
Find the smallest integer not currently in the atomic set, add it to the atomic set, and return the added value.
(open-and-read-fid connection fid)
Takes a connection and a fid. Clones the fid, opens for reading, fetches the data, and clunks. Returns the data read.
Takes a connection and a fid. Clones the fid, opens for reading, fetches the data, and clunks. Returns the data read.
(open-fid connection fid iomode)
Takes a connection, fid, and iomode. Returns the iounit for reading.
Takes a connection, fid, and iomode. Returns the iounit for reading.
(read-dir-contents connection fid)
Takes a connection, and a fid representing a directory. Returns a map of stats, with keys representing the qid-path of the stat.
Takes a connection, and a fid representing a directory. Returns a map of stats, with keys representing the qid-path of the stat.
(read-fid connection fid iounit)
Takes a connection, fid, and iounit. If successful, returns the read data.
Takes a connection, fid, and iounit. If successful, returns the read data.
(read-fid-partial connection fid offset iounit)
Takes a connection, fid, offset, and iounit. Returns data.
Takes a connection, fid, offset, and iounit. Returns data.
(remove-fid connection fid)
Takes a connection and a fid. If successful, returns true.
Takes a connection and a fid. If successful, returns true.
(reset-connection connection)
Reset the connection atom to an empty state.
Reset the connection atom to an empty state.
(tag-and-assemble x in-flight-requests tagpool)
Add a tag to the request, and assemble it into a byte-array.
Add a tag to the request, and assemble it into a byte-array.
(transact connection transaction)
Returns a function that takes in frames and returns deferreds representing the response over the network. Frames do not require tags.
Returns a function that takes in frames and returns deferreds representing the response over the network. Frames do not require tags.
(walk-fid connection fs-handle paths)
Takes a connection, fid, and a vector of paths to walk. If successful, returns the new fid.
Takes a connection, fid, and a vector of paths to walk. If successful, returns the new fid.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close