Re: Ares on mobile devices / IP address changes / DNS server changes

2013-07-31 Thread Daniel Stenberg
On Wed, 31 Jul 2013, Mark Delany wrote: My implementation is a platform-specific hack, so it's not even suitable as an offering. One could perhaps imagine a new function that would return enough information for the application to know what to check for updates? and/or a function that does th

Re: Ares on mobile devices / IP address changes / DNS server changes

2013-07-31 Thread Mark Delany
On 31Jul13, Daniel Pocock allegedly wrote: > SIP applications are very sensitive to network changes and need to > monitor this stuff anyway. Other applications may want c-ares to do > everything for them behind the scenes. Yeah. I was only offering problems, not solutions :-) As it stands there

Re: Ares on mobile devices / IP address changes / DNS server changes

2013-07-31 Thread Daniel Pocock
On 31/07/13 18:09, Mark Delany wrote: > On 31Jul13, Jakub Hrozek allegedly wrote: >> On Wed, Jul 31, 2013 at 02:58:31PM +, Mark Delany wrote: >>> On 31Jul13, Daniel Pocock allegedly wrote: - if the application discovers new DNS servers (or if Ares has a way of >>> >>> Unfortunately that'

Re: Ares on mobile devices / IP address changes / DNS server changes

2013-07-31 Thread Mark Delany
On 31Jul13, Jakub Hrozek allegedly wrote: > On Wed, Jul 31, 2013 at 02:58:31PM +, Mark Delany wrote: > > On 31Jul13, Daniel Pocock allegedly wrote: > > > - if the application discovers new DNS servers (or if Ares has a way of > > > > Unfortunately that's what I've had to do. Monitor for DNS se

Re: Ares on mobile devices / IP address changes / DNS server changes

2013-07-31 Thread Jakub Hrozek
On Wed, Jul 31, 2013 at 02:58:31PM +, Mark Delany wrote: > On 31Jul13, Daniel Pocock allegedly wrote: > > - if the application discovers new DNS servers (or if Ares has a way of > > Unfortunately that's what I've had to do. Monitor for DNS server changes and > create a new ares channel. In SS

Patch to add TTL to returned structures for SOA, TXT, SRV and MX

2013-07-31 Thread Mark Delany
(Resent. I don't think it made the list last time) Hi. I didn't get much discussion from my previous thread so I went ahead and made a minimalist patch to add ttl to the end of the structures of most of the missing ones. The changes to each parse method are the same. A ttl has been added to the

Re: Ares on mobile devices / IP address changes / DNS server changes

2013-07-31 Thread Mark Delany
On 31Jul13, Daniel Pocock allegedly wrote: > - if the application discovers new DNS servers (or if Ares has a way of Unfortunately that's what I've had to do. Monitor for DNS server changes and create a new ares channel. > discovering them), then this needs to go into the running Ares context. >

Ares on mobile devices / IP address changes / DNS server changes

2013-07-31 Thread Daniel Pocock
Hi, Ares is used in reSIProcate. I'm just looking at how it can/should work for IP address changes (e.g. when a mobile client goes from GSM to Wifi). Presumably: - if the old IP is gone for good, all asynchronous operations need to stop (as they won't receive any reply on the new IP address) a