Bonjour Avahi守护程序TXTRecord [英] Bonjour Avahi daemon TXTRecord

查看:72
本文介绍了Bonjour Avahi守护程序TXTRecord的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试使用txt记录在多个设备之间共享信息.因此,我正在使用bonjour/avahi.服务器端可以很好地用作wireshark证明.信息被添加到txt记录中,并使用MDNS发送出去.问题发生在客户端,守护程序/服务似乎并没有一直在更改信息.它卡住了已经过时的信息,当我尝试再次解决该服务时不会自动更新它.

I try to use txt-records to share information between multiple devices. Therefore I am using bonjour/avahi. The server-side works fine as wireshark proofs. Information is added to the txt-record and sent out using MDNS. The problem occurs on the client side, where the daemon/service does not seem to get the information change all the time. It is stuck with information that is already outdated and does not automatically update it when I try to resolve the service again.

在客户端,我将DNSServiceResolve与回调函数结合使用,在该回调函数中,我调用TXTRecordContainsKey和TXTRecordGetValuePtr以确保数据在使用前可用.所有这些都很好用,除了已经提到的那样,信息并不总是更新.

On the client side I am using DNSServiceResolve in combination with a callback function where I call TXTRecordContainsKey and TXTRecordGetValuePtr to make sure the data is available before use. This all works fine except that, as already mentioned, the information is not always updated.

我是否缺少某些内容,或者是否有其他可用来强制守护程序更新其记录的API函数调用(除了DNSServiceResolve之外)?

Am I missing something, or are there any additional API-function calls that I can use to force the daemon to update its record except DNSServiceResolve?

谢谢.

推荐答案

已解决,在处理此类奇怪问题时,请务必确保防火墙失效.这完全解决了我的问题.

Solved, always make sure you deaktivate your firewall when dealing with such strange problems... This completely solved my issue.

这篇关于Bonjour Avahi守护程序TXTRecord的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆