bonjour

streaming images over bonjour between two iOS device

為{幸葍}努か 提交于 2019-12-03 09:12:58
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://mobileorchard.com/tutorial-networking-and-bonjour-on-iphone/ ) // Send raw image over network - (void

How do I obtain “model name” for a networked device (potentially using Bonjour)?

牧云@^-^@ 提交于 2019-12-03 07:26:21
问题 Apple's Finder.app is able to consistently determine the exact model of each physical computer that uses bonjour (as evidenced by the icons being unique for each individual device type: iMac, MacPro, MBP, etc). How do they do this and what APIs do they use? On a side note, Bonjour provides Name, Service Type, Domain and Port for all services on the network - but I haven't been able to find information on how to find the device model itself. 回答1: I believe this uses the _device-info._tcp. mDNS

How can I query .local bonjour DNS entries?

泪湿孤枕 提交于 2019-12-03 06:24:25
It's pretty straightforward to query out the guts of a DNS-SD entry via dig by asking your nameserver directly; but for multicast DNS, I'm not sure where to look. Edit: My motivation is to be able to see example DNS entries so that I can better configure static bonjour entries for my OS X machines. The main utility is dns-sd , e.g.: % dns-sd -B _afpovertcp._tcp Browsing for _afpovertcp._tcp Timestamp A/R Flags if Domain Service Type Instance Name 20:02:23.350 Add 2 4 local. _afpovertcp._tcp. myhost Aha, the secret is the multicast address/port. For example, to query available AFP servers: dig

PAN with Linux, iOS, Bluetooth, Bonjour, GameKit — Possible?

∥☆過路亽.° 提交于 2019-12-03 03:59:31
So I read different takes on this matter (I think I read all the related questions on SO). Can I connect in a PAN - Can I write an app that will connect - my linux machine and my iOS device via bluetooth? Using or not using Bonjour or GameKit. Few requisites: iOS devices are not jailbroken. iOS devices may or may not have the hotspot/tethering feature enabled (which as far as I have gathered is dictated by the Broadband provider -- i.e. if you pay you can tether your connection). iOS can run a custom made app that uses documented APIs. Bluetooth can be activated by hand by the iOS device user.

iPhone: Bonjour NSNetService IP address and port

依然范特西╮ 提交于 2019-12-03 03:17:52
问题 Excuse my iPhone/Objective-C newbie status please! I've found my HTTP server using NSNetServiceBrowser, but now I just want the IP address and port of the service found. I've got something like the following in my delegate method: NSNetService* server = [serverBrowser.servers objectAtIndex:0]; NSString *name = nil; NSData *address = nil; struct sockaddr_in *socketAddress = nil; NSString *ipString = nil; int port; uint i; for (i = 0; i < [[server addresses] count]; i++) { name = [server name];

How to route all subdomains to a single host using mDNS?

旧城冷巷雨未停 提交于 2019-12-03 03:13:44
问题 I have a development webserver hosting as "myhost.local" which is found using Bonjour/mDNS. The server is running avahi-daemon. The webserver also wants to handle any subdomains of itself. Eg "cat.myhost.local" and "dog.myhost.local" and "guppy.myhost.local". Given that myhost.local is on a dynamic ip address from dhcp, is there still a way to route all requests for the subdomains to myhost.local? I'm starting to think it not currently possible... http://marc.info/?l=freedesktop-avahi&m

error: dns_sd.h: No such file or directory

北城余情 提交于 2019-12-03 01:40:35
I'm trying to build a demo project using Bonjour, following this tutorial , but i'm getting this error: error: dns_sd.h: No such file or directory It happens on this line: #include <dns_sd.h> Where do I get that header file? I just had this error on Ubuntu while trying to compile a project. This helped: sudo apt-get install libavahi-compat-libdnssd-dev user2599140 You can find the mDNSResponder daemon code here: http://www.opensource.apple.com/source/mDNSResponder/ You can download a tar file here: http://www.opensource.apple.com/tarballs/mDNSResponder/ You can use Avahi configured with

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

旧街凉风 提交于 2019-12-02 23:41:52
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. Tony Langdon 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] init]; domainBrowser.delegate = self; [domainBrowser searchForServicesOfType:@"_services._dns

How do I obtain “model name” for a networked device (potentially using Bonjour)?

£可爱£侵袭症+ 提交于 2019-12-02 20:57:55
Apple's Finder.app is able to consistently determine the exact model of each physical computer that uses bonjour (as evidenced by the icons being unique for each individual device type: iMac, MacPro, MBP, etc). How do they do this and what APIs do they use? On a side note, Bonjour provides Name, Service Type, Domain and Port for all services on the network - but I haven't been able to find information on how to find the device model itself. I believe this uses the _device-info._tcp. mDNS record for the IP address. You can see this for yourself. In the terminal, you can use dig @224.0.0.251

iPhone: Bonjour NSNetService IP address and port

狂风中的少年 提交于 2019-12-02 17:15:23
Excuse my iPhone/Objective-C newbie status please! I've found my HTTP server using NSNetServiceBrowser, but now I just want the IP address and port of the service found. I've got something like the following in my delegate method: NSNetService* server = [serverBrowser.servers objectAtIndex:0]; NSString *name = nil; NSData *address = nil; struct sockaddr_in *socketAddress = nil; NSString *ipString = nil; int port; uint i; for (i = 0; i < [[server addresses] count]; i++) { name = [server name]; address = [[server addresses] objectAtIndex:i]; socketAddress = (struct sockaddr_in *) [address bytes]