<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto">Hi Willems,<div><br></div><div>For detecting this case I think you want to leave the ServiceResolver running. Do you get a new hit on the ServiceResolver if you leave it running?</div><div><br></div><div>Trent<br><br><div dir="ltr">Sent from my iPhone</div><div dir="ltr"><br><blockquote type="cite">On 22 Feb 2021, at 4:08 pm, Willems Gert (GWI) <Gert.Willems@niko.eu> wrote:<br><br></blockquote></div><blockquote type="cite"><div dir="ltr">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Hello,</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
I'm new to the mailing list and have been digging around in the code of avahi for the last couple of days to figure out how it would be possible that the server would post a AVAHI_BROWSER_NEW event when an IP address change has been detected.</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
I work in Niko, which is a Belgian company that mainly focusses on domotica applications.</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
We use avahi in our product to detect what the devices are on the network. We use the client resolve_callback function in order to do this and this works find however we do have a problem that we don't get a trigger when there is an IP address change because
of a reboot of the DHCP server or some other reason. Because of this we lose connection with our devices and other then a full reboot there is no way of solving that.</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
I've been concentrating on the 0.7 release since that is the one that we are using. I've found out that the avahi cache does detect a change of IP address and that it even cleans up the old address. So it was a bit surprising to see that this doesn't lead to
an event towards the client (like an AVAHI_BROWSER_NEW). As far as I can tell only new PTR records seem to lead to an actual event that triggers the client. So my question is, if I would like to create a custom version where address changes do lead to AVAHI_BROWER_NEW
events, how would be the best way to go about and do this?</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
regards,</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Gert Willems</div>
<span>_______________________________________________</span><br><span>avahi mailing list</span><br><span>avahi@lists.freedesktop.org</span><br><span>https://lists.freedesktop.org/mailman/listinfo/avahi</span><br></div></blockquote></div></body></html>