chickadee » 9p » attach

attach message auth-fid-value bind-fid! reply! error!procedure

This corresponds to a 9P Tattach request. The message is a list of four elements, the fid to bind to the root directory, a fid used for authentication, the user name attaching, and the name of the file tree to attach (often just the empty string). If an auth request occurred then auth-fid-value will be the state of the authentication protocol. bind-fid! should be called with a value to be the initial state of the root directory fid. reply! should be called with a list containing a single element, the QID of the root directory if it succeeded, otherwise error! should be called with an error message string.