Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
com.cambiocreative.cordova.plugin.zeroconf
Advanced tools
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.
In your application project directory:
cordova plugins add https://github.com/vstirbu/ZeroConf
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.
Original plugin ZeroConf developed by Matt Kane / Triggertrap Ltd.
It depends on the JmDNS library. Bundles the jmdns.jar library.
The MIT License
FAQs
ZeroConf plugin for Cordova/Phonegap
The npm package com.cambiocreative.cordova.plugin.zeroconf receives a total of 0 weekly downloads. As such, com.cambiocreative.cordova.plugin.zeroconf popularity was classified as not popular.
We found that com.cambiocreative.cordova.plugin.zeroconf demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.