精华内容
下载资源
问答
  • JmDNS

    2017-11-20 17:20:49
    1. 注册设备 public void publishService(BonjourServiceInfo svcInfo) { synchronized (mJmdnsLock) { ServiceInfo serviceInfo = ServiceInfo.create(svcInfo.getServiceType(), ...
    1. 注册设备
    public void publishService(BonjourServiceInfo svcInfo) {
    synchronized (mJmdnsLock) {
    ServiceInfo serviceInfo = ServiceInfo.create(svcInfo.getServiceType(),
    svcInfo.getServiceName(),
    svcInfo.getServicePort(),
    0,
    0,
    svcInfo.getProperties());

    if (!mSvcInfoList.containsKey(svcInfo.getServiceType())) {
    mSvcInfoList.put(svcInfo.getServiceType(), serviceInfo);

    try {
    Log.v(TAG, String.format("registerService: %s (%s)",
    svcInfo.getServiceType(),
    svcInfo.getServiceName()));
    mJmdns.registerService(serviceInfo);
    } catch (IOException e) {
    e.printStackTrace();
    } catch (IllegalStateException e) {
    e.printStackTrace();
    }
    }
    }
    }
    2. 取消注册
    public void unpublishService(String svcType) {
    synchronized (mJmdnsLock) {
    ServiceInfo serviceInfo = mSvcInfoList.get(svcType);
    if (serviceInfo != null) {
    Log.v(TAG, String.format("unregisterService: %s", svcType));
    mJmdns.unregisterService(serviceInfo);
    mSvcInfoList.remove(svcType);
    }
    }
    }

    3. 查找设备
    public void discoveryService(String serviceType) {
    synchronized (mJmdnsLock) {
    mSvcType.add(serviceType);

    if (mStarted) {
    Log.d(TAG, String.format("discoveryService: %s", serviceType));
    mJmdns.addServiceListener(serviceType, this);
    }
    }
    }


    4.取消查找
    public void undiscoveryService(String serviceType) {
    synchronized (mJmdnsLock) {
    mSvcType.remove(serviceType);

    if (mStarted) {
    Log.d(TAG, String.format("discoveryService: %s", serviceType));
    mJmdns.removeServiceListener(serviceType, this);
    }
    }
    }
    展开全文
  • jmdns, jmDNS库的官方主页 这个库是在Apache许可版本 2.0下许可的。 请查看文件 NOTICE.txt 。Arthur van Hoff avh@strangeberry.comrickblair@mac.com 。Kai Kreuzer
  • jmdns sample

    热门讨论 2011-10-03 20:57:37
    jmdns ,一个Java实现并可被用来在本地广域网中实现DNS服务注册与发现 例子中有详细的 注册 与发现 以及通信
  • Information hiding for JmDNS

    2020-12-02 14:14:59
    <div><p>The usage of JmDNS is an implementation detail and should not be exposed to the API <p>This breaks the API a little, but I think it's worth it. The JmDNS object exposes how the discovery ...
  • Jmdns 说明文档

    热门讨论 2011-10-03 20:54:34
    简单介绍 jmdns, 一个Java实现并可被用来在本地广域网中实现DNS服务注册与发现
  • JmDNS3.4.1源码

    2013-03-21 11:54:34
    JmDNS是multi-cast DNS的一个Java实现并可被用来在本地广域网中实现DNS服务注册与发现。
  • I have some problem using JmDNS on my Huawei Nexus 6P - Android 7.1 When Wifi (connected to the printer) and Cellular Data is turned on , discovery does not work. If I turn off Cellular Data ...
  • <div><p>I got JMDNS working but not without poking around, and I suggest that some more detailed explanation of accomplishing this is mentioned. E.g. I couldn't get this suggested approach to work...
  • <div><p>In version 3.4.1 i was able to create a JmDNS instance, which listened for new services as long as i explicitly stopped it. Since version 3.5 the JmDNS instance stops after a very short period...
  • <div><p>Added Factory class and Delegate interface to allow to customise JmDNS object creation (same as in JmmDNS and NetworkTopologyDiscovery). Without this, JmmDNS will always create a JmDNSImpl ...
  • <a href="https://github.com/jmdns/jmdns/blob/master/src/main/java/javax/jmdns/JmDNS.java#L42l">Link to code</a></p> <p>Best regards, Carsten</p><p>该提问来源于开源项目:jmdns/jmdns</p></div>
  • <div><p>Seeing: https://github.com/jmdns/jmdns/issues/34</p><p>该提问来源于开源项目:Sloeber/arduino-eclipse-plugin</p></div>
  • activemq-jmdns_1.0-5.5.1.jar

    2019-07-18 06:16:08
    标签:activemq-jmdns_1.0-5.5.1.jar,activemq,jmdns_1.0,5.5.1,jar包下载,依赖包
  • activemq-jmdns_1.0-4.1.2.jar

    2019-07-18 06:09:35
    标签:activemq-jmdns_1.0-4.1.2.jar,activemq,jmdns_1.0,4.1.2,jar包下载,依赖包
  • activemq-jmdns_1.0-5.6.0.jar

    2019-07-18 06:16:46
    标签:activemq-jmdns_1.0-5.6.0.jar,activemq,jmdns_1.0,5.6.0,jar包下载,依赖包
  • activemq-jmdns_1.0-5.4.3.jar

    2019-07-18 06:15:01
    标签:activemq-jmdns_1.0-5.4.3.jar,activemq,jmdns_1.0,5.4.3,jar包下载,依赖包
  • activemq-jmdns_1.0-5.4.2.jar

    2019-07-18 06:14:28
    标签:activemq-jmdns_1.0-5.4.2.jar,activemq,jmdns_1.0,5.4.2,jar包下载,依赖包
  • activemq-jmdns_1.0-5.4.1.jar

    2019-07-18 06:13:44
    标签:activemq-jmdns_1.0-5.4.1.jar,activemq,jmdns_1.0,5.4.1,jar包下载,依赖包
  • activemq-jmdns_1.0-5.4.0.jar

    2019-07-18 06:13:22
    标签:activemq-jmdns_1.0-5.4.0.jar,activemq,jmdns_1.0,5.4.0,jar包下载,依赖包
  • activemq-jmdns_1.0-5.3.2.jar

    2019-07-18 06:12:49
    标签:activemq-jmdns_1.0-5.3.2.jar,activemq,jmdns_1.0,5.3.2,jar包下载,依赖包
  • activemq-jmdns_1.0-5.3.1.jar

    2019-07-18 06:12:26
    标签:activemq-jmdns_1.0-5.3.1.jar,activemq,jmdns_1.0,5.3.1,jar包下载,依赖包
  • activemq-jmdns_1.0-5.1.0.jar

    2019-07-18 06:10:22
    标签:activemq-jmdns_1.0-5.1.0.jar,activemq,jmdns_1.0,5.1.0,jar包下载,依赖包
  • jmdns makes too many logs

    2020-12-09 08:36:43
    <div><p>When Chromecast device is in the same network, jmdns creates some warning/error messages. We are re-searching every 10 seconds, it makes a lot of logs. </p><p>该提问来源于开源项目:...
  • <div><p>Right now, we have jmdns running in a background service in order to have mdns discovery decoupled from the mainacitvitiies on-rotate re-create(). Starting from android Oreo, this should ...
  • 标签:activemq-jmdns_1.0-5.4.0-javadoc.jar,activemq,jmdns_1.0,5.4.0,javadoc,jar包下载,依赖包
  • 标签:activemq-jmdns_1.0-5.6.0-javadoc.jar,activemq,jmdns_1.0,5.6.0,javadoc,jar包下载,依赖包
  • 标签:activemq-jmdns_1.0-5.6.0-sources.jar,activemq,jmdns_1.0,5.6.0,sources,jar包下载,依赖包
  • 标签:activemq-jmdns_1.0-5.5.1-sources.jar,activemq,jmdns_1.0,5.5.1,sources,jar包下载,依赖包
  • 标签:activemq-jmdns_1.0-5.5.1-javadoc.jar,activemq,jmdns_1.0,5.5.1,javadoc,jar包下载,依赖包
  • 标签:activemq-jmdns_1.0-5.5.0.jar.zip,activemq,jmdns_1.0,5.5.0,jar.zip包下载,依赖包

空空如也

空空如也

1 2 3 4 5 ... 10
收藏数 189
精华内容 75
关键字:

JmDNS