现在,是的,每个接口只能注册一个服务。为了改变这一点,我没有看到一个即时的解决方案,因为您需要创建一个DNSRESUT的数组,每个都有自己的状态。不管怎样,你不是最好的主意。但是我想你的问题有一个解决方案:启用别名接口并在同一条线上创建另一个虚拟接口(我假设你运行以太网)。这个新的接口将有自己的IP地址,可以运行自己的MNS服务,为您提供您所需要的。
以上来自于百度翻译
以下为原文
Currently yes, there is only one service that can be registered per interface.
To change this I don't see an immediate workaround because you'd need to create an array of DNSDesc_t, each with its own state, etc. While this is not difficult to do, it still needs a lot of messing with the code, probably not the best idea anyway.
But there is a solution to your problem, I think: enable the alias interfaces and create another virtual interface on the same wire (I assume you run Ethernet). This new interface will have its own IP address and can run its own mDNS service, providing you what you need.
Give it a try and let us know.
现在,是的,每个接口只能注册一个服务。为了改变这一点,我没有看到一个即时的解决方案,因为您需要创建一个DNSRESUT的数组,每个都有自己的状态。不管怎样,你不是最好的主意。但是我想你的问题有一个解决方案:启用别名接口并在同一条线上创建另一个虚拟接口(我假设你运行以太网)。这个新的接口将有自己的IP地址,可以运行自己的MNS服务,为您提供您所需要的。
以上来自于百度翻译
以下为原文
Currently yes, there is only one service that can be registered per interface.
To change this I don't see an immediate workaround because you'd need to create an array of DNSDesc_t, each with its own state, etc. While this is not difficult to do, it still needs a lot of messing with the code, probably not the best idea anyway.
But there is a solution to your problem, I think: enable the alias interfaces and create another virtual interface on the same wire (I assume you run Ethernet). This new interface will have its own IP address and can run its own mDNS service, providing you what you need.
Give it a try and let us know.
举报