Daine Mamacos wrote:
> When you are setting up a YAZ service, is there any way
to stop the
> API from deleting a request past the scope of the
registered method?
>
> For instance, you pass in bend_esrequest_rr *rr into
the registered
> method. If I queue that object, but the method returns,
the API cleans
> it all
>
> up and rightly so. Is there a way to tell it not to
destroy the PDU
> that rr points to? Or conversely, is there an easy-ish
way to deep
> copy that structure?
>
>
>
> Thanks
>
> Daine. (:
>
I haven't analyzed this thoroughly, but I think it's
possible that if you
call odr_extract_mem on the 'decode' stream that you get
from a given _rr structue
in the frontent server, you can keep data allocated on that
stream from annihilation.
odr_extract_mem will return a handle that you have to
preserve somehow. Call odr_release_mem
on it when you're done with it. More at http://ww
w.indexdata.dk/yaz/doc/odr.use.tkl .
Cheers,
--Sebastian
>
>
>--------------------------------------------------------
----------------
>
>_______________________________________________
>Yazlist mailing list
>Yazlist lists.indexdata.dk
>http://lists.indexdata.dk/cgi-bin/mailman/listinfo/yaz
list
>
>
--
Sebastian Hammer, Index Data
quinn indexdata.com www.indexdata.com
Ph: (603) 209-6853 Fax: (866) 383-4485
_______________________________________________
Yazlist mailing list
Yazlist lists.indexdata.dk
http://lists.indexdata.dk/cgi-bin/mailman/listinfo/yaz
list
|