|
From: | Louis Demers |
Subject: | Re: [lwip-users] mDNS |
Date: | Thu, 14 Dec 2017 14:55:24 -0500 |
Hi, On Dec 13, 2017, at 16:48, Erik Ekman <address@hidden> wrote: Problem 1) unless i add an arbritrary delay after initializing the netif, it does not work, no broadcast ever appears and it does not responds to computers searching for services. Other protocols are operational like telnet et http, so i know the netif is operational (although the connections are provoked from my computer, thereforem, always after a delay. So it seems that i have to query some part of lwip to know if i can start configuring mDNS (the 3 calls mdns_resp_init() ; mdns_resp_add_netif(); mdns_resp_add_service(); ) This is surprising behaviour to me which leads me to believe I'm doing something wrong. Problem 2) with a delay, mDNS does broadcast (once ?) and then, after TTL seconds, the service is no longer visible and the name lookup for the zynq.local no longer works. I tried to call mdns_resp_add_service() again (form my telnet shell) but that does not work either.... If the initial broadcast is lost because your link is not ready, that should not matter. That is what I expected, the mDNS module should be rebroadcasting whenever other host are searching for services. What client do you use? You have to query for the host/service and not just depend on broadcasts from the device. I use 2 apps on OSX, a small menu le called LocalSites and an application called Bonjour Browser which queries every single services on an network. They both work very well with every single bonjour commercial devices we have on our network (printers, servers, bridges ...) I'll keep investigating but any clues would be greatly appreciated.
Louis Demers eng.
Co-Founder Obzerv Technologies Inc. 400 blvd. Jean Lesage, suite 201 Quebec, QC, Canada G1K 8W1 T: 418.524.3522 F: 418.524.6745 C: 418 953-6204 |
[Prev in Thread] | Current Thread | [Next in Thread] |