Liking cljdoc? Tell your friends :D

phlegyas.client


add-child-mappingclj

(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.
sourceraw docstring

attach-filesystemclj

(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.
sourceraw docstring

client!clj

(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.
sourceraw docstring

clone-fidclj

(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.
sourceraw docstring

clunk-fidclj

(clunk-fid connection fid)

Takes a connection and fid. If successful, returns true.

Takes a connection and fid. If successful, returns true.
sourceraw docstring

connectclj

(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.
sourceraw docstring

lsdirclj

(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.
sourceraw docstring

negotiate-versionclj

(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.
sourceraw docstring

next-valclj

(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.
sourceraw docstring

open-and-read-fidclj

(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.
sourceraw docstring

open-fidclj

(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.
sourceraw docstring

read-dir-contentsclj

(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.
sourceraw docstring

read-fidclj

(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.
sourceraw docstring

read-fid-partialclj

(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.
sourceraw docstring

remove-fidclj

(remove-fid connection fid)

Takes a connection and a fid. If successful, returns true.

Takes a connection and a fid. If successful, returns true.
sourceraw docstring

reset-connectionclj

(reset-connection connection)

Reset the connection atom to an empty state.

Reset the connection atom to an empty state.
sourceraw docstring

tag-and-assembleclj

(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.
sourceraw docstring

transactclj

(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.
sourceraw docstring

walk-fidclj

(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.
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close