示例#1
0
int
MultiServer::openDir(ServerContext& s, const char *path, void **handle)
{
	string subdir;
	FileServer *server = getServer(s, path, subdir);
	struct multi_handle *mh = new struct multi_handle;
	mh->handle = NULL;
	mh->path = subdir;
	mh->server = server;
	*handle = mh;
	_DEBUG("open_dir (%p) from %s to %s", server, path, subdir.c_str());
	return (server
			? server->openDir(s, subdir.c_str(), &mh->handle)
			: MemoryServer::openDir(s, path, &mh->handle));
}