Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/laserpants/qtzeroconf
High-level Zeroconf interface for Qt-based client-server applications (using Avahi).
https://github.com/laserpants/qtzeroconf
Last synced: 2 months ago
JSON representation
High-level Zeroconf interface for Qt-based client-server applications (using Avahi).
- Host: GitHub
- URL: https://github.com/laserpants/qtzeroconf
- Owner: laserpants
- License: lgpl-2.1
- Created: 2012-11-16T13:51:42.000Z (about 12 years ago)
- Default Branch: master
- Last Pushed: 2015-04-17T02:55:48.000Z (over 9 years ago)
- Last Synced: 2023-03-27T16:12:31.018Z (over 1 year ago)
- Language: C++
- Size: 235 KB
- Stars: 11
- Watchers: 5
- Forks: 8
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# QtZeroConf
A high-level Zeroconf interface for Qt-based client-server applications.
(c) 2012 Johannes Hildén
https://github.com/johanneshilden/qtzeroconf
http://atomic.batcave.net/qtzeroconf/doxygen/## About zero configuration networking
Zeroconf simplifies the task of finding and connecting to services on a local area network. There are normally three steps involved in this process:
1. registering a service,
2. browsing for available services, and
3. resolving a service to an actual IP address and port.The first step concerns the server, which could be a hardware device or an application that advertises its service on the network (e.g., a chat or file sharing software). The other two steps enable a client to search for a service of some type and connect to it without having to know the host machine's IP address and port number.
### About Avahi
QtZeroConf uses the Avahi library, which implements the Apple Zeroconf specification to facilitate service discovery on a local network via the mDNS/DNS-SD protocol suite. http://avahi.org/
## QtZeroConf consists of:
### ZConfService
Allows server applications built using Qt's event loop system to announce a Zeroconf service on the local area network.
### ZConfServiceBrowser
This class can be used to handle Zeroconf service discovery in Qt-based client applications. ZConfServiceBrowser uses Qt's signals/slots mechanism to browse asynchronously for available services on the network.
The *browse()* function call is non-blocking and ZConfServiceBrowser will emit *serviceEntryAdded()* when a new service is discovered and *serviceEntryRemoved()* when a service is removed from the network.
### ZConfBrowserWidget
QTreeWidget-based widget that uses ZConfServiceBrowser internally to browse for and display Zeroconf services available on the local network.
### ZConfServiceEntry
This struct is returned by ZConfServiceBrowser and contains details about a particular Zeroconf service on the local network.