1. <small id='eHnFg'></small><noframes id='eHnFg'>

    <legend id='eHnFg'><style id='eHnFg'><dir id='eHnFg'><q id='eHnFg'></q></dir></style></legend>

    <tfoot id='eHnFg'></tfoot>

    1. <i id='eHnFg'><tr id='eHnFg'><dt id='eHnFg'><q id='eHnFg'><span id='eHnFg'><b id='eHnFg'><form id='eHnFg'><ins id='eHnFg'></ins><ul id='eHnFg'></ul><sub id='eHnFg'></sub></form><legend id='eHnFg'></legend><bdo id='eHnFg'><pre id='eHnFg'><center id='eHnFg'></center></pre></bdo></b><th id='eHnFg'></th></span></q></dt></tr></i><div id='eHnFg'><tfoot id='eHnFg'></tfoot><dl id='eHnFg'><fieldset id='eHnFg'></fieldset></dl></div>
      • <bdo id='eHnFg'></bdo><ul id='eHnFg'></ul>

      android 解析 .local (mDNS)

      android resolve .local (mDNS)(android 解析 .local (mDNS))
      • <i id='k9OXq'><tr id='k9OXq'><dt id='k9OXq'><q id='k9OXq'><span id='k9OXq'><b id='k9OXq'><form id='k9OXq'><ins id='k9OXq'></ins><ul id='k9OXq'></ul><sub id='k9OXq'></sub></form><legend id='k9OXq'></legend><bdo id='k9OXq'><pre id='k9OXq'><center id='k9OXq'></center></pre></bdo></b><th id='k9OXq'></th></span></q></dt></tr></i><div id='k9OXq'><tfoot id='k9OXq'></tfoot><dl id='k9OXq'><fieldset id='k9OXq'></fieldset></dl></div>
      • <small id='k9OXq'></small><noframes id='k9OXq'>

        <tfoot id='k9OXq'></tfoot>
          <bdo id='k9OXq'></bdo><ul id='k9OXq'></ul>
            <tbody id='k9OXq'></tbody>

                <legend id='k9OXq'><style id='k9OXq'><dir id='k9OXq'><q id='k9OXq'></q></dir></style></legend>
              1. 本文介绍了android 解析 .local (mDNS)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                问题描述

                我正在寻找使用 Android 4.0.4(无 NSD,由于 API 级别 15)解析 .local 主机名的解决方案.在我没有任何服务要发现的设备上,只有主机名.您能否提供一个如何解决的示例?我集成了jmDNS,但不知道如何用于主机名解析.

                I'm looking for a solution to resolve .local host names with Android 4.0.4 (no NSD, due to API level 15). On the device I don't have any service to discover, just the hostname. Could you please provide an example how to resolve? I integrated the jmDNS, but don't know how to use for host name resolving.

                win-cmd:

                ping kcmeasurement.local
                
                Pinging kcmeasurement.local [10.202.0.29] with 32 bytes of data:
                Reply from 10.202.0.29: bytes=32 time<1ms TTL=64
                ...
                

                谢谢,

                丹尼尔

                推荐答案

                我的要求和你的问题差不多,除了需要使用jmDNS,所以我用NSD解决了.我意识到这并不能完全解决您的问题,但认为看看我如何解决它可能对您自己和其他人仍然有所帮助.

                I had almost the same requirements as your question, apart from the requirement to use jmDNS, so I solved it with NSD. I realize this doesn't address your question exactly, but thought it might still be somewhat helpful for yourself and others to see how I solved it.

                我设置了一个 NSD 发现侦听器和一个 NSD 解析侦听器,并在发现侦听器代码中为目标主机名添加了一个过滤器(例如kcmeasurement",或者在我的情况下为garagedoor").

                I setup an NSD discovery listener and an NSD resolve listener, and within the discovery listener code, added a filter for the target host name (e.g. "kcmeasurement", or in my case, "garagedoor").

                这里有一篇博文详细解释了如何做到这一点.参考步骤3-4,处理所需的Android App代码.

                There is a blog post here which explains in detail how to do that. Refer to steps 3-4, which are dealing with the Android App code required.

                http://www.dodgycoder.net/2015/02/设置-bonjourzeroconfmdnsnsd.html

                对于您的情况,我想您将不得不执行相同的过程,但只使用 jmDNS 库而不是 NSD.

                For your case, I would imagine you would have to do the equivalent process but just using the jmDNS library instead of NSD.

                这篇关于android 解析 .local (mDNS)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                相关文档推荐

                How can I use CClistview in COCOS2d Android?(如何在 COCOS2d Android 中使用 CClistview?)
                cocos2d-android: how to display score(cocos2d-android:如何显示分数)
                Sqlite database not copied from asset folder Android(Sqlite 数据库未从资产文件夹 Android 复制)
                SQLite Database Copy Appears Corrupted When Generated by Device and not Emulator(SQLite 数据库副本在由设备而不是模拟器生成时出现损坏)
                Android file copy(安卓文件拷贝)
                Android how to detect Copy event of Edittext in android(Android如何在android中检测Edittext的Copy事件)

                  1. <i id='9GNjX'><tr id='9GNjX'><dt id='9GNjX'><q id='9GNjX'><span id='9GNjX'><b id='9GNjX'><form id='9GNjX'><ins id='9GNjX'></ins><ul id='9GNjX'></ul><sub id='9GNjX'></sub></form><legend id='9GNjX'></legend><bdo id='9GNjX'><pre id='9GNjX'><center id='9GNjX'></center></pre></bdo></b><th id='9GNjX'></th></span></q></dt></tr></i><div id='9GNjX'><tfoot id='9GNjX'></tfoot><dl id='9GNjX'><fieldset id='9GNjX'></fieldset></dl></div>

                    <small id='9GNjX'></small><noframes id='9GNjX'>

                  2. <legend id='9GNjX'><style id='9GNjX'><dir id='9GNjX'><q id='9GNjX'></q></dir></style></legend>
                      <tfoot id='9GNjX'></tfoot>

                        <tbody id='9GNjX'></tbody>
                      • <bdo id='9GNjX'></bdo><ul id='9GNjX'></ul>