Swiftpack.co - Package - grandcentrix/RxGCXMulticastDNSKit

RxGCXMulticastDNSKit

License Release Carthage compatible Cocoapods compatible

This is a simple RxSwift wrapper for GCXMulticastDNSKit.

Requirements

RxSwift @ v5.x GCXMulticastDNSKit @ v1.3.1

Usage

public enum DiscoveryResult {
    case serviceFound(DiscoveryService)
    case failure(DiscoveryConfiguration, DiscoveryError)
    case serviceRemoved(DiscoveryService)
}
let disposeBag = DisposeBag()

...

let configuration = DiscoveryConfiguration(serviceType: "_http._tcp", serviceNamePrefix: "GCXDNSKitTest")
Discovery.rx.service(configurations: [ configuration ] ).subscribe(onNext: { result in
	  switch (result) {
            case .failure(let configuration, let error):
            	// handle the error
                break
            case .serviceFound(let service):
            	// we got a service
                break
            case .serviceRemoved(let service):
            	// a service disappeared
                break
            }
    }).addDisposableTo(disposeBag)

Installation

Carthage

git "https://github.com/grandcentrix/RxGCXMulticastDNSKit.git"

Cocoapods

use_frameworks!

pod 'RxGCXMulticastDNSKit'

License

Copyright 2017 grandcentrix GmbH

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

Github

link
Stars: 2

Used By

Total: 0

Releases

RxGCXMulticastDNSKit 1.3.2 - 2020-09-16 07:56:29

Adds Support for Swift Package Manager

Uses GCXMulticastDNSKit 1.3.1 with SPM Support

RxGCXMulticastDNSKit v1.3.1 - 2019-10-01 08:02:28

RxGCXMulticastDNSKit v1.3.1

Rx Wrapper for GCXMulticastDNSKit. Using RxSwift 5.x and GCXMulticastDNSKit 1.3.0

Version: 1.3.1 Build: 6 Tag: v1.3.1 Min deployment target: 9.0

Release Notes:

  • RxSwift 5.x
  • Xcode 11

Swift 4 Migration - 2018-01-04 14:12:19

This is the fourth release of the Rx Wrapper for GCXMulticastDNSKit. Using RxSwift 4.1 and GCXMulticastDNSKit 1.2.0

The minimum deployment target is 9.0.

Changelog:

  • Objective-C support has been removed

Fixes carthage deployment for use in submodules - 2017-04-05 09:42:37

RxGCXMulticastDNSKit v1.0.1 - 2017-03-24 16:33:52

  • Required dependencies are linked only now

Initial release of RxGCXMulticastDNSKit - 2017-03-21 15:21:29

This is the first public release of RxGCXMulticastDNSKit.