UPnP: Universal Plug and Play
Universal Plug and Play (UPnP) is a set of networking protocols for primarily residential networks without enterprise class devices that permits networked devices, such as personal computers, printers, Internet gateways, Wi-Fi access points and mobile devices to seamlessly discover each other's presence on the network and establish functional network services for data sharing, communications, and entertainment. The UPnP technology is promoted by the UPnP Forum.
The concept of UPnP is an extension of plug-and-play, a technology for dynamically attaching devices directly to a computer, although UPnP is not directly related to the earlier plug-and-play technology. UPnP devices are "plug-and-play" in that when connected to a network they automatically establish working configurations with other devices.
Cling - Java/Android UPnP library and tools
Cling is an effort to create a UPnP-compatible software stack in Java. The project's goals are strict specification compliance, complete, clean and extensive APIs, as well as rich SPIs for easy customization.
The current release of Cling is 1.0.5 (2011-09-22), see the Changelog for a summary of improvements and the Road Mapfor future plans. You can also find snapshot builds of the current development trunk here or include version 1.1-SNAPSHOTas a dependency in your Maven pom.xml.
Read this chapter of the manual for a simple Cling usage example.
Main modules of Cling are:
- Cling Core
- An embeddable Java library that implements the UPnP Device Architecture 1.0. Use Cling Core to expose services with a UPnP remoting interface, or to write control point applications that discover UPnP devices and utilize their services. You can also integrate Cling Core as an Android UPnP/DLNA library in your applications (platform level 7/2.1 required). The full source code of the Android UPnPBrowser example of the manual can be found here. You can see the application in action in this video.
- Cling Support
- Optional classes and useful infrastructure for developing and controlling UPnP services with Cling Core; extensions that simplify working with UPnP media servers and renderers, NAT port mapping on routers, etc.
- Cling Workbench
- A desktop application for browsing UPnP devices and interacting with their services, including an HTTP gateway and WAN/LAN bridge.
- Cling MediaRenderer
- Standalone UPnP MediaRenderer, based on gstreamer.
Cling is Free Software, distributed under the terms of the GNU Lesser General Public License.