TestsTested | ✗ |
LangLanguage | SwiftSwift |
License | MIT |
ReleasedLast Release | Oct 2016 |
SwiftSwift Version | 3.0 |
SPMSupports SPM | ✗ |
Maintained by Ian Spence.
Easily access Bonjour services and domains in Swift Updated to Swift 3.0
Drag Bonjour.swift
onto your project.
func startSearch() {
let browser: Bonjour = Bonjour()
// This will find all HTTP servers - Check out Bonjour.Services for common services
browser.findService(Bonjour.Services.Hypertext_Transfer, domain: Bonjour.LocalDomain) { (services) in
// Do something with your services!
// services will be an empty array if nothing was found
}
}
func startSearch() {
let browser: Bonjour = Bonjour()
bonjour.findDomains { (domains) in
// Do something with your domains!
// services will be an empty array if nothing was found
}
}