{"id":1656,"url":"https://github.com/AlTavares/Ciao","last_synced_at":"2025-08-06T13:33:00.426Z","repository":{"id":55139494,"uuid":"106427370","full_name":"AlTavares/Ciao","owner":"AlTavares","description":"Publish and discover services using Bonjour","archived":false,"fork":false,"pushed_at":"2024-07-15T20:59:21.000Z","size":90,"stargazers_count":63,"open_issues_count":2,"forks_count":10,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-11-22T03:02:53.664Z","etag":null,"topics":["bonjour","carthage","cocoapods","mdns","swift","xcode","zeroconf"],"latest_commit_sha":null,"homepage":"","language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/AlTavares.png","metadata":{"files":{"readme":"README.MD","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2017-10-10T14:20:52.000Z","updated_at":"2024-11-16T17:55:34.000Z","dependencies_parsed_at":"2024-01-29T17:08:21.162Z","dependency_job_id":null,"html_url":"https://github.com/AlTavares/Ciao","commit_stats":{"total_commits":86,"total_committers":2,"mean_commits":43.0,"dds":0.03488372093023251,"last_synced_commit":"2009e9478415ec67bf3dee727fa3b6d8fa7cdf90"},"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlTavares%2FCiao","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlTavares%2FCiao/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlTavares%2FCiao/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlTavares%2FCiao/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AlTavares","download_url":"https://codeload.github.com/AlTavares/Ciao/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228905524,"owners_count":17989779,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bonjour","carthage","cocoapods","mdns","swift","xcode","zeroconf"],"created_at":"2024-01-05T20:15:52.461Z","updated_at":"2025-08-06T13:33:00.412Z","avatar_url":"https://github.com/AlTavares.png","language":"Swift","funding_links":[],"categories":["Networking","Libs","Swift","Network [🔝](#readme)"],"sub_categories":["Video","Network","Other free courses"],"readme":"## Ciao\n\n# Join the Ciao Project as a Contributor!\n\n🚀 **We're inviting open-source enthusiasts to contribute!** 🚀\n\nDespite a pause in updates, [Ciao](https://github.com/AlTavares/Ciao) is operational and ready for enhancements. Your contributions can breathe new life into it!\n\n**How You Can Help:**\n- **Code Enhancements:** From minor tweaks to major features, all contributions are welcome.\n- **Documentation Updates:** Help keep our documentation current and user-friendly.\n- **Community Engagement:** Support users and enrich discussions.\n\nStart by forking the repo, create your feature branch, and dive into our [issues](https://github.com/AlTavares/Ciao/issues). Every contribution is a step towards advancement!\n\n[![Platforms](https://img.shields.io/cocoapods/p/Ciao.svg)](https://cocoapods.org/pods/Ciao)\n[![License](https://img.shields.io/cocoapods/l/Ciao.svg)](https://raw.githubusercontent.com/AlTavares/Ciao/master/LICENSE)\n\n[![Swift Package Manager](https://img.shields.io/badge/Swift%20Package%20Manager-compatible-brightgreen.svg)](https://github.com/apple/swift-package-manager)\n[![Carthage compatible](https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat)](https://github.com/Carthage/Carthage)\n[![CocoaPods compatible](https://img.shields.io/cocoapods/v/Ciao.svg)](https://cocoapods.org/pods/Ciao)\n\n\nLib to publish and find services using mDNS\n\n- [Requirements](#requirements)\n- [Installation](#installation)\n- [Usage](#usage)\n- [License](#license)\n\n## Requirements\n\n- iOS 8.0+ / Mac OS X 10.10+ / tvOS 9.0+\n- Xcode 9.0+\n\n## Installation\n\n### CocoaPods\n\n[CocoaPods](http://cocoapods.org) is a dependency manager for Cocoa projects. You can install it with the following command:\n\n```bash\n$ gem install cocoapods\n```\n\nTo integrate Ciao into your Xcode project using CocoaPods, specify it in your `Podfile`:\n\n```ruby\nsource 'https://github.com/CocoaPods/Specs.git'\nplatform :ios, '8.0'\nuse_frameworks!\n\npod 'Ciao', '~\u003e 2.1.2'\n```\n\nThen, run the following command:\n\n```bash\n$ pod install\n```\n\n### Carthage\n\n[Carthage](https://github.com/Carthage/Carthage) is a decentralized dependency manager that automates the process of adding frameworks to your Cocoa application.\n\nYou can install Carthage with [Homebrew](http://brew.sh/) using the following command:\n\n```bash\n$ brew update\n$ brew install carthage\n```\n\nTo integrate Ciao into your Xcode project using Carthage, specify it in your `Cartfile`:\n\n```ogdl\ngithub \"AlTavares/Ciao\" ~\u003e 2.1.2\n```\n### Swift Package Manager\n\nTo use Ciao as a [Swift Package Manager](https://swift.org/package-manager/) package just add the following in your Package.swift file.\n\n``` swift\ndependencies: [\n    .package(url: \"https://github.com/AlTavares/Ciao.git\", from: \"2.1.2\")\n]\n```\n\n## Usage\n\n### Server\n\n```swift\nlet ciaoServer = CiaoServer(type: ServiceType.tcp(\"ciaoserver\"))\n\nciaoServer.start { (success) in\n    print(\"Server started:\", success)\n}\nciaoServer.txtRecord = [\"someKey\": \"someValue\"]\n```\n\n### Browser\n\n```swift\nlet ciaoBrowser = CiaoBrowser()\n\n// get notified when a service is found\nciaoBrowser.serviceFoundHandler = { service in\n    print(\"Service found\")\n    print(service)\n}\n\n// register to automatically resolve a service\nciaoBrowser.serviceResolvedHandler = { service in\n    print(\"Service resolved\")\n    print(service)\n    print(service.hostName)\n    print(service.txtRecordDictionary)\n}\n\nciaoBrowser.serviceRemovedHandler = { service in\n    print(\"Service removed\")\n    print(service)\n}\n\nciaoBrowser.browse(type: type)\n```\n\n### Resolver\n\nOptionally you can also use the resolver to any NetService instance\n\n```swift\n\nvar resolver = CiaoResolver(service: service)\nresolver?.resolve(withTimeout: 0) { (result: Result\u003cNetService, ErrorDictionary\u003e) in\n    print(result)\n}\n\n```\n\n## Contributing\n\n1. Fork it!\n2. Create your feature branch: `git checkout -b my-new-feature`\n3. Commit your changes: `git commit -am 'Add some feature'`\n4. Push to the branch: `git push origin my-new-feature`\n5. Submit a pull request :D\n\n## License\n\nCiao is released under the MIT license. See [LICENSE](https://github.com/AlTavares/Ciao/blob/master/LICENSE) for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FAlTavares%2FCiao","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FAlTavares%2FCiao","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FAlTavares%2FCiao/lists"}