dns-sd

Referring to DNSSDObjects in dns_sd.h and DNSServiceResolve in MonoTouch

China☆狼群 提交于 2019-12-24 08:58:31
问题 I want to add reference to DNSSDObjects to a project in MonoTouch, specifically DNSServiceResolve object. I want to access DNSServiceResolve in a MonoTouch project but cant find that class anywhere. How can that be done ? 回答1: I got the functions from dns_sd.h working with P/Invokes. Most of the definitions were already done in the project zeroconfignetservices [1], specifically in the file mDNSImports.cs. Instead of referencing dnssd.dll , it is /usr/lib/system/libsystem_dnssd.dylib on iOS.

Service discovery using dns-sd

笑着哭i 提交于 2019-12-24 08:55:34
问题 I have a device which is configured in station mode. Device is connected to a smart phone over hotspot provided by smartphone. Device needs to search for a service published by an application on smartphone say _abc._tcp. I am using the command dns-sd -B _abc._tcp but no output. Please guide me what I may be missing. The application publishes the service. I verified it using Bonjour application on android. Also please clarify Is it possible to discover the services while in station mode. While

Service discovery using dns-sd

二次信任 提交于 2019-12-24 08:55:14
问题 I have a device which is configured in station mode. Device is connected to a smart phone over hotspot provided by smartphone. Device needs to search for a service published by an application on smartphone say _abc._tcp. I am using the command dns-sd -B _abc._tcp but no output. Please guide me what I may be missing. The application publishes the service. I verified it using Bonjour application on android. Also please clarify Is it possible to discover the services while in station mode. While

What's the strategy of DNS-SD services responding to mDNS query?

帅比萌擦擦* 提交于 2019-12-24 08:29:05
问题 I am trying to gather some information of devices connected on the wifi with DNS-SD. When I use dns-sd -B _services._dns-sd._udp (OS X)/ avahi-browse -t _services._dns-sd._udp (Linux) repeatedly to observe the published services, I get more or less output while devices(Mac and iPhone) are always connected. For example, this service(used by iTunes for Wi-Fi sync) shows occasionally while no one changes the sync setting of the iPhone. Timestamp A/R Flags if Domain Service Type Instance Name 12

Wifi P2P service discovery works intermittently

人盡茶涼 提交于 2019-12-17 21:42:15
问题 Wifi P2P service discovery is not behaving as expected. I am seeing intermittent issues where the DNSSD listeners are not called always and hence I have no clue of nearby devices running the same app. I am using the following two APIs - one to register a service to be discovered by other devices and the other to discover the nearby services running on other devices. Any idea if I am doing anything wrong here or is there some specific sequence of other android API calls that need to be made

How to change android device name used by NsdManager?

有些话、适合烂在心里 提交于 2019-12-10 20:15:33
问题 I am using NsdManager to register a web service on the local network. My problem is that the device name is called "android", so I can access the phone as "android.local" from my laptop. How can I change that name? I would like something more unique. 回答1: You cannot change this (on non-rooted devices). "android" is the host name of the device, ".local" is the suffix added by the mDNS (see this article). 来源: https://stackoverflow.com/questions/13796841/how-to-change-android-device-name-used-by

communication between Java server and Android client using Network Service Discovery

房东的猫 提交于 2019-12-10 16:17:25
问题 I'm building a Java server application (running on a pc) that register itself to the local network using JmDNS, and an Android client App that should discover the java server using Network Service Discovery. When I run the android app first, and then run the java server, the app succeed to discover the registerd java server. But when I first run the server and then the android app, the onDiscoveryStarted method called but the onServiceFound method never triggered - the android app doesn't

Resolving SRV records with iOS SDK

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-10 13:12:29
问题 I want to resolve DNS SRV records using the iOS SDK. I've already tried the high-level Bonjour APIs Apple is providing, but they're not what I need. Now I'm using DNS SD. void *processQueryForSRVRecord(void *record) { DNSServiceRef sdRef; int context; printf("Setting up query for record: %s\n", record); DNSServiceQueryRecord(&sdRef, 0, 0, record, kDNSServiceType_SRV, kDNSServiceClass_IN, callback, &context); printf("Processing query for record: %s\n", record); DNSServiceProcessResult(sdRef);

DNS-SD: Experience with “mdnsjava”? [closed]

血红的双手。 提交于 2019-12-05 02:10:01
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 4 years ago . I'm right now implementing the DNS-DS library "mdnsjava" into my Android-project as it's mentioned at several positions, for example here at SO: Are there any other Java libraries for bonjour/zeroconf apart from JMDNS?. While implementing, I wonder if this implementation is really

Android P2P service discovery callbacks not being called

荒凉一梦 提交于 2019-12-01 11:14:43
I'm fairly new to Android and I'm working on an application that will exchange data over WIFI direct and I would like to use DNS Service Discovery instead of pure P2P discovery to get more useful information like device "nick names" etc. So far I've followed the tutorials at http://developer.android.com/training/connect-devices-wirelessly/index.html and read through the documentation. My application seems to register it's local service successfully and the onSuccess callback from discoverServices is always called, however the txtServiceRecord from other devices (I'm using 2 devices) is never