{"id":1646,"url":"https://github.com/abdullahselek/Merhaba","last_synced_at":"2025-08-02T04:32:08.838Z","repository":{"id":15304401,"uuid":"77864036","full_name":"abdullahselek/Merhaba","owner":"abdullahselek","description":"Bonjour networking for discovery and connection between iOS, macOS and tvOS devices.","archived":false,"fork":false,"pushed_at":"2023-04-12T05:52:47.000Z","size":415,"stargazers_count":70,"open_issues_count":1,"forks_count":7,"subscribers_count":7,"default_branch":"master","last_synced_at":"2024-05-01T00:01:01.679Z","etag":null,"topics":["bonjour","ios","macos","network-discovery","tvos"],"latest_commit_sha":null,"homepage":"","language":"Objective-C","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/abdullahselek.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}},"created_at":"2017-01-02T21:50:08.000Z","updated_at":"2024-01-01T17:15:49.000Z","dependencies_parsed_at":"2023-10-20T16:15:17.703Z","dependency_job_id":null,"html_url":"https://github.com/abdullahselek/Merhaba","commit_stats":{"total_commits":141,"total_committers":3,"mean_commits":47.0,"dds":0.08510638297872342,"last_synced_commit":"b542a405a81ff15b7f809b1930543ef8b99da024"},"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abdullahselek%2FMerhaba","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abdullahselek%2FMerhaba/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abdullahselek%2FMerhaba/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abdullahselek%2FMerhaba/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/abdullahselek","download_url":"https://codeload.github.com/abdullahselek/Merhaba/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228439057,"owners_count":17920017,"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","ios","macos","network-discovery","tvos"],"created_at":"2024-01-05T20:15:52.229Z","updated_at":"2024-12-06T08:31:22.099Z","avatar_url":"https://github.com/abdullahselek.png","language":"Objective-C","funding_links":[],"categories":["Networking","HarmonyOS"],"sub_categories":["Video","Windows Manager","Other free courses"],"readme":"![Merhaba](https://github.com/abdullahselek/Merhaba/blob/master/Images/merhaba.png)\n\n[![Build Status](https://travis-ci.org/abdullahselek/Merhaba.svg?branch=master)](https://travis-ci.org/abdullahselek/Merhaba)\n[![CocoaPods Compatible](https://img.shields.io/cocoapods/v/Merhaba.svg)](https://cocoapods.org/pods/Merhaba)\n[![Carthage Compatible](https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat)](https://github.com/Carthage/Carthage)\n[![Coverage Status](https://coveralls.io/repos/github/abdullahselek/Merhaba/badge.svg?branch=master)](https://coveralls.io/github/abdullahselek/Merhaba?branch=master)\n![Platform](https://img.shields.io/cocoapods/p/Merhaba.svg?style=flat)\n![License](https://img.shields.io/dub/l/vibe-d.svg)\n\n# Merhaba\nBonjour networking for discovery and connection between iOS, macOS and tvOS devices.\n\n## Features\n\n- Creating Service\n- Start \u0026 Stop Service\n- Stop Browsing\n- Create Connection with Another Service\n- Send Data\n- Send file from given file path\n- Send given text\n- Strong Events\n\n## Requirements\niOS 9.0+ / macOS 10.9+ / tvOS 9.0+\n\n## Installation\n\n### CocoaPods\nCocoaPods is a dependency manager for Cocoa projects. You can install it with the following command:\n```\t\n$ gem install cocoapods\n```\n\nTo integrate Merhaba into your Xcode project using CocoaPods, specify it in your Podfile:\n```\nsource 'https://github.com/CocoaPods/Specs.git'\nplatform :ios, '9.0'\nuse_frameworks!\n\ntarget '\u003cYour Target Name\u003e' do\n    pod 'Merhaba', '~\u003e 1.2.1'\nend\n```\nThen, run the following command:\n```\n$ pod install\n```\n### Carthage\n\nCarthage is a decentralized dependency manager that builds your dependencies and provides you with binary frameworks.\n\nYou can install Carthage with Homebrew using the following command:\n\n```\nbrew update\nbrew install carthage\n```\n\nTo integrate Merhaba into your Xcode project using Carthage, specify it in your Cartfile:\n\n```\ngithub \"abdullahselek/Merhaba\" ~\u003e 1.2.1\n```\n\nRun carthage update to build the framework and drag the built Merhaba.framework into your Xcode project.\n\n## Example Usage\n\nImplement your class with MRBServerDelegate to handle Bonjour events\n```\n@interface ViewController : UIViewController\u003cMRBServerDelegate\u003e\n```\n\nInitiation of MRBServer\n```\nNSString *type = @\"TestingProtocol\";\nself.server = [[MRBServer alloc] initWithProtocol:type];\nself.server.delegate = self;\n\nNSError *error = nil;\nBOOL isStarted = [self.server start:\u0026error];\nNSLog(@\"Check server started : %@\", (isStarted) ? @\"YES\" : @\"NO\");\n\n// Can handle error if not nil\n```\n\nConnect to selected service\n```\n[self.server connectToRemoteService:selectedService];\n```\n\nSending data to selected service\n```\nNSData *data = [textToSend dataUsingEncoding:NSUTF8StringEncoding];\nMRBServerErrorCode errorCode = [self.server sendData:data];\nNSLog(@\"Data sent with code : %ld\", errorCode);\n```\n\nHandling incoming data with didAcceptData function\n```\nNSString *message = [[NSString alloc] initWithData:data encoding:NSUTF8StringEncoding];\nNSLog(@\"Incoming message : %@\", message);\n```\n\nSending file at given path\n```\nMRBServerErrorCode code = [self.server sendFileAtPath:YOUR_FILE_PATH];\n```\n\nSend text\n```\nMRBServerErrorCode code = [self.mrbServer sendText:@\"text\"];\n```\n\nStopping server\n```\n[self.server stop];\n```\n\nStopping browsing for bonjour services\n```\n[self.server stopBrowser];\n```\n\n## License\n\nMerhaba is released under the MIT license. See LICENSE for details.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabdullahselek%2FMerhaba","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fabdullahselek%2FMerhaba","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabdullahselek%2FMerhaba/lists"}