GitXplorerGitXplorer
r

bonjour

public
0 stars
0 forks
0 issues

Commits

List of commits on branch master.
Unverified
ee7b7eb22013f81acd0cb108fa4069b3645ab4e6

Update to Swift 5.1.

rrandymarsh77 committed 4 years ago
Unverified
d2d95d0de2b6617788e7e3b03902347fd182807e

Update .travis.yml

rrandymarsh77 committed 8 years ago
Unverified
2378f394c2cd002373419bc6ebd19c744f0ee90e

Update .travis.yml

rrandymarsh77 committed 8 years ago
Unverified
cb904d12270ac3ddfd3a04d33013fce73b56b51a

Update .travis.yml

rrandymarsh77 committed 8 years ago
Unverified
f1e424299e8a134573fc7d798734a155126f61e7

Add self checking behavior for sometimes unreliable delegate callbacks.

rrandymarsh77 committed 8 years ago
Unverified
240f0c004a1fc8802abcd0f33b9d6a667d1a39dc

Support initial usage of Bonjour on a background thread.

rrandymarsh77 committed 8 years ago

README

The README file for this repository.

Bonjour

Convenience task-based API around NetServices.

license GitHub release SPM Build Status codebeat badge

Example

import Foundation
import Async
import Bonjour
import Using

let serviceType: ServiceType = .Unregistered(identifier: "_myService")

let bSettings = BroadcastSettings(
	name: "Bonjour World!",
	serviceType: serviceType,
	serviceProtocol: .TCP,
	domain: .AnyDomain,
	port: 1234
)

let qSettings = QuerySettings(
	serviceType: serviceType,
	serviceProtocol: .TCP,
	domain: .AnyDomain
)

using (Bonjour.Broadcast(bSettings)) {
	let services = await(Bonjour.FindAll(qSettings))
	print("Found \(services.count) service\(services.count == 1 ? "" : "s")")
}