bonjour

ios file sharing/sync to devices from mac/pc

﹥>﹥吖頭↗ 提交于 2019-12-08 20:45:35
I have developed the ipad app which displays images and other product details from sqlite db. I have also developed .net based windows application which resides on Windows xp pc. This application generates data in sqlite db and also map each record with related images. This flow is working fine till now with itunes filesharing feature enabled. So the user copy sqlite db and images(around 2-3 gb) to iPad through itunes file sharing. Recently I came across Bonjour service which is used to communicate in local network. I was wondering is it possible that my .net based application creates Bonjour

Get Device IP with Bonjour

时光总嘲笑我的痴心妄想 提交于 2019-12-08 06:17:09
问题 I am using Java 6 update 14 for development and NetBeans 6.7. I am creating a sample client to detect particular type of service using Bonjour. I face a certain challenge where I want to get the IP address of the device. But the ResolveListener.serviceResolved(...) function, provides only Hostname and Port. The FullName also does not contain IP information of the device. Is it possible to obtain the IP address of the device using Bonjour SDK? If yes, how? Thanks. 回答1: Use the standard Java

Firewall impeding Bonjour network debugging

白昼怎懂夜的黑 提交于 2019-12-08 04:18:36
问题 I’m trying to debug a Bonjour network routine, and every time I run it, the Mac’s firewall asks “Do you want the application ProjectName to accept incoming network connections?” I click “allow,” give it the administrator name and password, and the app is duly added to the firewall’s list of allowed incoming-connections apps…until the next run. Debugging this sync routine is cumbersome as it is. It’s really a nuisance having to type in the admin and password for every run. Of course I could

NSNetServiceBrowser does not find Service

断了今生、忘了曾经 提交于 2019-12-07 22:41:16
问题 I tried to write a Client(iPad)/Server(iMac) application based on the CocoaEcho example. My first simple example worked, but after adding more functionality the client is unable to find the server. After starting the server, I start the client, both in a local network. The client starts searching for services and gets a "netServiceBrowserWillSearch:" message for its browser, but after that nothing happens. Triggering the search for services again, results in a "didNotsearch:" message with

Client-to-client messaging in cocoa?

懵懂的女人 提交于 2019-12-07 21:09:48
问题 erm, now I trying to do a messaging between both client instead of client to server. So if I'm not wrong we can't startup service individually but how to see whether is setting up individually or both connect to same service? My Code for startup the service: -(void)startService { // Start listening socket NSError *error; self.listeningSocket = [[[AsyncSocket alloc]initWithDelegate:self] autorelease]; if ( ![self.listeningSocket acceptOnPort:0 error:&error] ) { NSLog(@"Failed to create

Java error Native Library already loaded in another classloader

自古美人都是妖i 提交于 2019-12-07 12:51:59
问题 I'm using the java bonjour library (dns_sd.jar) in a web application running in Jboss web server. When I start the server a Servlet finds every resource on the network with bonjour and returns to the user. The first time everything runs great but when I redeploy the web app I get: java.lang.UnsatisfiedLinkError: Native Library C:\Windows\System32\jdns_sd.dll already loaded in another classloader I already tried deletting the .dll and the samething happens. Why does it even refer the .dll if I

NsdManager discovery does not work on Android 9

被刻印的时光 ゝ 提交于 2019-12-07 11:29:30
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(serviceType: String?) { println("DEBUG: onDiscoveryStarted $serviceType") } override fun onDiscoveryStopped

any examples of a server/client iphone app where both the server and clients are iOS devices?

早过忘川 提交于 2019-12-06 14:13:47
问题 I would like to create a server/client application where one iphone is running a server, and all other devices on the same wifi network can connect to the server device and send and receive information. Are there any examples of running a server on a device and letting other devices on the network search for it? I looked into using GameKit, but the 16 person max limit is unfortunate. cocoaasyncsocket seems like a good option, but how do I set up one device as the server, and search for it on

Bonjour Service Browser with Swift does not fetch serviceinfo

天涯浪子 提交于 2019-12-06 12:07:49
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 class BMNSDelegate : NSObject, NetServiceDelegate { func netServiceWillPublish(_ sender: NetService) {

NSNetServiceBrowser does not find Service

坚强是说给别人听的谎言 提交于 2019-12-06 11:43:40
I tried to write a Client(iPad)/Server(iMac) application based on the CocoaEcho example. My first simple example worked, but after adding more functionality the client is unable to find the server. After starting the server, I start the client, both in a local network. The client starts searching for services and gets a "netServiceBrowserWillSearch:" message for its browser, but after that nothing happens. Triggering the search for services again, results in a "didNotsearch:" message with error -72003, 10 (browser is still busy searching). 1) I checked that the server is reachable with the