bonjour

Send messages between iPhone & Mac

时光怂恿深爱的人放手 提交于 2019-12-23 06:09:06
问题 I'm fairly novice in iPhone development, but trying to create what would seem a fairly simple application. I want to have 1 program running on my phone/simulator that has a slider and a button, and another receiving program on the mac, such as Processing/Supercollider. When the button is pressed i want a String such as "hello" to appear in the post window of the program on the mac, and when the slider is moved up/down for an integer, say between 0-99, to correspond with the movement on the

NsdManager discovery does not work on Android 9

你。 提交于 2019-12-23 03:57:16
问题 I have tried for a good time now to get the NsdManager discovery function to work on Android 9. It works on any Android version prior to that without any problems. For testing purposes I use this simple code snippet and there is a permission for "INTERNET" in the manifest. var nsdManager = context.getSystemService(Context.NSD_SERVICE) as NsdManager nsdManager.discoverServices("_https._tcp", NsdManager.PROTOCOL_DNS_SD, object: NsdManager.DiscoveryListener { override fun onDiscoveryStarted

Bonjour Service Browser with Swift does not fetch serviceinfo

丶灬走出姿态 提交于 2019-12-22 12:02:21
问题 The service I want to connect to is published via Bonjour. I can find all the info with the Bonjour Browser, however if I try to gather the data programmatically, the only value I get, is the name of the service. The NetService delegate is set and the function netServiceWillPublish is called. The functions DidNotPublish or DidPublish are not executed. The function netServiceBrowser gets all published netServices, but all properties are set to the default value of the datatype. import UIKit

streaming images over bonjour between two iOS device

三世轮回 提交于 2019-12-21 02:41:39
问题 My goal is to stream images captured by AVCpatureInput from one iOS device to another via bonjour. Here is my current method: 1) Capture frame from video input - (void)captureOutput:(AVCaptureOutput *)captureOutput didOutputSampleBuffer:(CMSampleBufferRef)sampleBuffer fromConnection:(AVCaptureConnection *)connection { /*code to convert sampleBuffer into UIImage */ NSData * imageData = UIImageJPEGRepresentation(image,1.0); [connection sendImage:image]; } 2) Send over TCP connection (from http:

Locate an iPhone reliably indoors?

自闭症网瘾萝莉.ら 提交于 2019-12-20 10:56:08
问题 I'm writing an app for a museum tour. I'd like my app to know where the user is in the building, if the user is standing in a particular room, in front of a particular work, etc. GPS doesn't work inside. (Using WiFi positioning could work, but I know Apple doesn't use Skyhook anymore, so I don't know where I would register my base stations.) Since GPS won't work, it would seem like having a specialized device in a known location and having the app detect that device, could work. But based on

How to get the list of all announced bonjour services on all available domains?

人盡茶涼 提交于 2019-12-20 10:39:24
问题 It's not the problem to look in all domains, but I can't find the right way to look for any service on the network. 回答1: Old thread but there is a way to find the local services Discovering all advertised Bonjour service types. You will need to do some manipulation of the results to get the types in the correct format. This works on Mac & iPhone although no services are discovered if I haven't got a Wifi connection on iPhone. NSNetServiceBrowser* domainBrowser = [[NSNetServiceBrowser alloc]

What is the hostname while invoking GetAddrInfo(…) in Bonjour 1.0

廉价感情. 提交于 2019-12-20 04:06:31
问题 I scanned through my local home network using Bonjour 1.0 (.NET) for services with regtype = "_http._tcp" : DNSSDService service = new DNSSDService(); DNSSDEventManager eventManager = new DNSSDEventManager(); eventManager.ServiceFound += new _IDNSSDEvents_ServiceFoundEventHandler(eventManager_ServiceFound); DNSSDService browse = service.Browse(0, 0, "_http._tcp", null, eventManager); When I find the service the method: static void eventManager_ServiceFound(DNSSDService browser, DNSSDFlags

Adding Bonjour (dns_sd.h) library to Qt in Windows

我们两清 提交于 2019-12-19 10:51:00
问题 I've been trying to properly add the open source dns_sd.h library provided by Apple. I am writing a program that uses the BonjourRegistrar class as demonstrated here: link text I've already written my program on the Mac environment and now I am trying to port it to Windows. The Bonjour SDK comes with several classes, and I am quite confused onto how to correctly add the class to my Qt project. I have tried add the line: win32:LIBS += c:\dnsssd.lib in the .pro file with no success. Also, I

Bonjour not advertising over BT

扶醉桌前 提交于 2019-12-18 13:36:54
问题 I've been banging my head against this for the last week or so. I've already gone through the following resources: StackOverflow: Bonjour over bluetooth WITHOUT Gamekit ? (3844189) StackOverflow: How does Bonjour Over Bluetooth Work (3350094) StackOverflow: Using iOS GameKit's “Bluetooth Bonjour” with other platforms (8070998) Technical Q&A QA1753 -- Apple Developer WiTap sample application SRVResolver sample application DNSSDObjects sample application I'm using Mac OS 10.7, Xcode 4.5, an

Bonjour Discovery in Javascript? Maybe?

北慕城南 提交于 2019-12-18 12:57:06
问题 So its a longshot, I'll start with that. Is it/could it be possible to discover bonjour advertised HTTP services in javascript alone? Why would this be useful? Imagine a local service looking after some data (eg your current lat/long), the data is exposed via a webservice and advertised by Bonjour Zeroconf. A (remote) website might want to know your current lat/long and rather than having to know you're running MyGPSserverVersion2 the site could use javascript to search the local bonjour for