Procedure 8 |
Read Names |
REQUEST If the access capability is valid those names identified to the server by pathname are returned with a total size of up to count bytes. |
RESPONSE - success
Each entry contains the name of the spectrum or file,
the type of file and a cookie which is an opaque
pointer to the next entry. |
entry type |
RESPONSE - failure procedure status which is non zero indicates the cause of the failure. |
procedure status |
XDR Specification
procedure ReadNames (cap, path, k, n) returns(reply) capability cap; pathname path; cookie k; unsigned n; union switch (stat status) { OK: typedef union switch (boolean valid) { TRUE: struct { string name <255>; unsigned entrytype; cookie kk; entry nextentry; } FALSE: struct {} } entry; boolean eod; default: struct {} } reply;
Implementation
For on-line spectrum servers which have only a single level name structure pathname should be a null length string and all names known to the server will be returned. For off-line spectrum servers (ie disc-based spectra) pathname must define a directory file and the names of the spectrum files and directory files within that directory will be returned. All other files will be ignored.