Kai Vehmanen a écrit :
Hi,
On Wed, 19 Apr 2006, Thomas Rosenblatt wrote:
Pekka Pessi a écrit :
I have tried to make a new, more thread-friendly interface, which is
in the experimental repo in
<http://dev-126.openlaboratory.net/repos/bleeding-sofia-sip/>. In the
Will this new thread interface be available in the next release ?
the modifications to sresolv interface are now also in CVS and will be
in the next release ("in a few weeks" is the current guesstimate).
Hi,
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.
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? );
su_root_t *root = su_root_create(NULL);
sres_resolver_t
*my_resolver=sres_resolver_create2(root,"conf_file",cache,NULL,NULL);
(sres_resolver_create2 is similar to sres_resolver_create, but the line:
res = sres_resolver_new_with_cache(conf_file_path, NULL, NULL);
is changed to :
res = sres_resolver_new_with_cache(conf_file_path, cache, NULL);
and finally,
resolve(root,sres_resolver_t,my_request);
Is it the better, or at least a valid way to use this new interface?
Thanks a lot,
Thomas Rosenblatt.
-------------------------------------------------------
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