Hi. I’m currently writing a resource manager that takes over three
prefixes (/somepath/snap, /somepath/sample, /somepath/event). I’m doing
this as illustrated in the “Writing a Resource Manager” document; that
is, I just declare an array of iofunc_attr_t structures and attach each
of them in turn with resmgr_attach().
My question is, how do I determine which prefix a client is using? That
is, how can I tell whether a client has opened “snap” rather than
“sample”? In “Writing a Resource Manager”, it states that the msg->path
data received in io_open() (a wrapper around io_open_default()) will
contain the path data; this only seems to be the case when
resmgr_attach() was used to take over a directory; the path is “” for
multiple files. Any suggestions?
Josh Hamacher
FAAC Incorporated