bonjour

Disconnecting with server immediately after connecting

梦想的初衷 提交于 2019-11-29 22:31:47
问题 I have written a Singleton Class using GCDAsyncsocket Library to establish connection with any other device having same service using Bonjour. On one device I am using its Method " startPublishing " to make it a Host(Server), from the Application on another Device(Client) I am calling " StartBrowsing " to find out the available Devices in Network. When user selects any of service in that Network I am calling method " initConnectionWithService ", that initiate Connection flow by resolving

Bonjour implementation on Android

こ雲淡風輕ζ 提交于 2019-11-29 20:27:22
I am trying to implement bonjour/zero conf on my android app. I am using jmDns library for searching the all the available devices. Here is the code that I am using for searching the devices in the same network: public class ListDevices extends ListActivity { JmDNS jmdns; JmDNSImpl impl; MulticastLock lock; protected ServiceListener listener; protected ServiceInfo info; public ListView lv; public ArrayList<String> deviceList; public int cancel = 0; public final static String TAG = "ListDevices"; /** Called when the activity is first created. */ @Override public void onCreate(Bundle

Implementing the AirDrop protocol [closed]

北战南征 提交于 2019-11-29 19:39:06
I am interested in implementing AirDrop as a client on a device such as an iPad or Windows computer. Can anyone point me in the right direction for implementing the AirDrop protocol in either Python or C. Any help on this would be greatly appreciated. Thanks in advance. For the benefit of you or anyone who will try to reverse-engineer and implement Airdrop, here is what I found and what you will have to do to get started: There are two steps involved and they can be done in independently or in parallel. Reverse-engineer the way the physical WLAN ad-hoc network is created and named To do this,

Can I use Bonjour from command line?

只谈情不闲聊 提交于 2019-11-29 01:08:47
问题 Is it possible to use Bonjour from command line? For example if I want to register a service I type something like that: bonjour -register service_name port. And then Bonjour allocate a free IP for my service. Or, for example, if I want to see a list of available services I type something like: bonjour -showServices. And then I get list of all available services with their names, IP addresses and ports. Does something like that exist? I am kind of confused by the available documentation. For

Bonjour implementation on Android

人盡茶涼 提交于 2019-11-28 16:29:09
问题 I am trying to implement bonjour/zero conf on my android app. I am using jmDns library for searching the all the available devices. Here is the code that I am using for searching the devices in the same network: public class ListDevices extends ListActivity { JmDNS jmdns; JmDNSImpl impl; MulticastLock lock; protected ServiceListener listener; protected ServiceInfo info; public ListView lv; public ArrayList<String> deviceList; public int cancel = 0; public final static String TAG =

Implementing the AirDrop protocol [closed]

坚强是说给别人听的谎言 提交于 2019-11-28 15:24:28
问题 I am interested in implementing AirDrop as a client on a device such as an iPad or Windows computer. Can anyone point me in the right direction for implementing the AirDrop protocol in either Python or C. Any help on this would be greatly appreciated. Thanks in advance. 回答1: For the benefit of you or anyone who will try to reverse-engineer and implement Airdrop, here is what I found and what you will have to do to get started: There are two steps involved and they can be done in independently

NSNetService works fine, but can't get hostName, resolve causes error

那年仲夏 提交于 2019-11-28 08:48:40
问题 I'm using Bonjour with an NSNetService to publish a server from my iPhone. It all works as expected, I can browse the pages I'm serving etc. However, on the iPhone I want to display the host name (i.e. the URL, like "myDevice.local."), so that one can also enter the address manually in a browser (useful for clients missing a bonjour discovery service). My understanding is that calling the method [myNetService hostName] should give me that address. However, this call always returns nil. I read

Using iOS GameKit's “Bluetooth Bonjour” with other platforms

强颜欢笑 提交于 2019-11-28 03:14:48
I'm interested in connecting to iOS-based devices over Bluetooth. I can see that the "Local Network" service is exposed, but I cannot find any extra information about it. Property stored under key 0x0204 looks like a Bonjour key. Which protocol is used? How can one talk to the iOS device using Linux, Mac or one's own embedded device equipped with a Bluetooth chip? Here's SDP data extracted using Bluetooth Explorer under OS X while the iOS device runs Gameloft's Star Battalion. { 0x0000 = uint32(1330188565), 0x0200 = uint32(2), 0x0202 = string(004wD7l1A..0|0|0|ivucic-À'), 0x030a = uint32(0),

How can I create a small Mac app that receives data over the WiFi network from an iOS app?

本小妞迷上赌 提交于 2019-11-27 18:26:02
What I need is to have a simple screen in this Mac app that just prints a string as the iPhone is transmitting strings through the WiFi network. This string is simply a string value from a slider being adjusted up and down by the user on the iPhone. The data will be sent to the Mac app and then the Mac app will receive this signal from the WiFi network and simply print the values. This is a constant connection. I'm not trying to sync once. I'm trying to listen to the iPhone device from the Mac to see if the iPhone is sending any more strings as the user slides the UISlider up and down from the

bonjour for iphone

纵饮孤独 提交于 2019-11-27 13:27:24
问题 I would like to know whether bonjour is a public or private api?Can we use it in our apps directly. 回答1: Bonjour is handled by the NSNetServices and CFNetServices APIs, which you can read more about here. These are Cocoa and Core Foundation interfaces, and are publicly available for use in Mac and iPhone applications. As has been pointed out, many applications make use of this to do iPhone - iPhone networking (Game Kit is layered on top of Bonjour, for example) or Mac - iPhone data syncing