All Projects → vstirbu → ZeroConf

vstirbu / ZeroConf

Licence: MIT license
ZeroConf plugin for Cordova/Phonegap 3.0

Programming Languages

java
68154 projects - #9 most used programming language
javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to ZeroConf

cordova-plugin-webpack
Integrate webpack into your Cordova workflow.
Stars: ✭ 61 (+56.41%)
Mutual labels:  cordova-android, cordova-plugin
cordova-gmv-barcode-scanner
A Cordova barcode scanning plugin based on the Google Mobile Vision library for iOS & Android.
Stars: ✭ 48 (+23.08%)
Mutual labels:  cordova-android, cordova-plugin
cordova-plugin-ironsource-ads
Cordova plugin for IronSource ads
Stars: ✭ 17 (-56.41%)
Mutual labels:  cordova-android, cordova-plugin
Create-a-custom-Cordova-plugin
How to create a custom cordova plugin and bridge it between your native code and a new or existing Cordova project
Stars: ✭ 32 (-17.95%)
Mutual labels:  cordova-android, cordova-plugin
cordova-plugin-example
Example Cordova plugin for iOS and Android to support blog post.
Stars: ✭ 15 (-61.54%)
Mutual labels:  cordova-android, cordova-plugin
cordova-plugin-flurryanalytics
Adds support for all that Flurry Analytics flavored goodness to your Cordova based apps
Stars: ✭ 23 (-41.03%)
Mutual labels:  cordova-android, cordova-plugin
cordova-plugin-android-window-background
Simple Cordova plugin to set Android window background on start-up 🎨 🍭
Stars: ✭ 15 (-61.54%)
Mutual labels:  cordova-android, cordova-plugin
cordova-plugin-zeep
Zip compression/decompression for the cordova/phonegap platform
Stars: ✭ 27 (-30.77%)
Mutual labels:  cordova-android, cordova-plugin
Ciao
Publish and discover services using Bonjour
Stars: ✭ 50 (+28.21%)
Mutual labels:  zeroconf
Servus
Zeroconf discovery in C++
Stars: ✭ 58 (+48.72%)
Mutual labels:  zeroconf
GCXMulticastDNSKit
Multicast DNS framework for iOS
Stars: ✭ 16 (-58.97%)
Mutual labels:  zeroconf
Cordova Plugin Fingerprint Aio
👆 📱 Cordova Plugin for fingerprint sensors (and FaceID) with Android and iOS support
Stars: ✭ 236 (+505.13%)
Mutual labels:  cordova-plugin
cordova-plugin-shell-exec
Apache Cordova Plugin to Execute Commands in Smartphone's Operating System Shell
Stars: ✭ 30 (-23.08%)
Mutual labels:  cordova-plugin
cordova-fonts
Cordova plugin for enumerating fonts on a mobile device
Stars: ✭ 14 (-64.1%)
Mutual labels:  cordova-plugin
python-zeroconf
A pure python implementation of multicast DNS service discovery
Stars: ✭ 468 (+1100%)
Mutual labels:  zeroconf
NetService
Swift NetService (Bonjour / Zeroconf / mDNS) implementation for Linux
Stars: ✭ 103 (+164.1%)
Mutual labels:  zeroconf
remotestash
A simple substitute for AirDrop between iPhone and a linux desktop
Stars: ✭ 38 (-2.56%)
Mutual labels:  zeroconf
JiaCordova
在Cordova及插件的基础上封装一些常用的功能,不断更新中
Stars: ✭ 35 (-10.26%)
Mutual labels:  cordova-plugin
Servus
Ad-hoc peer-to-peer iOS library
Stars: ✭ 27 (-30.77%)
Mutual labels:  zeroconf
RemoteDesktop
A simple remote desktop server/client application for Windows
Stars: ✭ 30 (-23.08%)
Mutual labels:  zeroconf

ZeroConf plugin for Cordova/Phonegap

This plugin allows you to browse and publish ZeroConf/Bonjour/mDNS services from applications developed using PhoneGap/Cordova 3.0 or newer. For older versions use ZeroConf.

GitHub version

Adding the Plugin to your project

In your application project directory, if you use cordova-cli newer then 5.0:

cordova plugin add cordova-zeroconf-plugin

or, for older versions:

cordova plugin add https://github.com/vstirbu/[email protected]

Using the plugin

There are six static methods on the ZeroConf object, as follows:

watch(type, callback)

Note that type is a fully-qualified service type, including the domain, e.g. "_http._tcp.local."

callback is a function that is called when services are added and removed. The function is passed an object with the following structure:

{
	"service": {
		"port": 50930,
		"protocol": "tcp",
		"application": "http",
		"urls": ["http://192.168.2.2:50930", "http://fe80::7256:81ff:fe00:99e3:50930"],
		"description": "\\00",
		"name": "Black iPod",
		"domain": "local",
		"server": "",
		"addresses": ["192.168.2.2", "fe80::7256:81ff:fe00:99e3"],
		"type": "_http._tcp.local.",
		"qualifiedname": "Black iPod._http._tcp.local."
	},
	"action": "added"
}

For more information on the fields, see the JmDNS docs. If you edit ZeroConf.java, you can easily add more fields if you need them.

unwatch(type)

Stops watching for services of the specified type.

close()

Closes the service browser and stops watching.

register(type, name, port, text)

Publishes a new service. The fields are as in the structure above. For more information, see the JmDNS docs.

unregister()

Unregisters all published services.

list(type, timeout, success, error)

List all published services, search for timeout (in ms). The fields are as in the structure above.

Credits

Original plugin ZeroConf developed by Matt Kane / Triggertrap Ltd.

It depends on the JmDNS library.

Licence

The MIT License

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].