On 4/20/06, Thomas Rosenblatt <[EMAIL PROTECTED]> wrote: > I have taken a look to your new interface, and it should fit my goals. > Before changing the architecture of my program, I would appreciate if > you confirm my understanding.
Great. > In this version, the cache can be shared between several sres_resolver > object. So if I need to resolve asynchronously , I will write something > like this: > > -->One thread per DNS resolution, and in each threads: > > sres_cache_t *cache = sres_cache_new( ? what does the integer mean? ); Initial size of the hash table, or 0 for default size. > su_root_t *root = su_root_create(NULL); > sres_resolver_t > *my_resolver=sres_resolver_create(root,"conf_file", cache,NULL,NULL); > (sres_resolver_create2 is similar to sres_resolver_create, but the line: I'd rather use new tag, something like my_resolver=sres_resolver_create(root,"conf_file",SRESTAG_CACHE(cache), TAG_END()); > and finally, > resolve(root,sres_resolver_t,my_request); > Is it the better, or at least a valid way to use this new interface? Something like that, looks pretty valid to me. You have to have separate root for each thread, too. -- Pekka.Pessi mail at nokia.com ------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid0709&bid&3057&dat1642 _______________________________________________ Sofia-sip-devel mailing list Sofia-sip-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sofia-sip-devel