{"id":42049229,"url":"https://github.com/ohmae/mmupnp","last_synced_at":"2026-01-26T06:33:04.357Z","repository":{"id":37677694,"uuid":"55842405","full_name":"ohmae/mmupnp","owner":"ohmae","description":"Universal Plug and Play (UPnP) ControlPoint library for Java/Kotlin","archived":false,"fork":false,"pushed_at":"2024-11-04T05:38:07.000Z","size":9007,"stargazers_count":50,"open_issues_count":2,"forks_count":11,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-11-04T06:25:49.059Z","etag":null,"topics":["android","controlpoint","java","kotlin","upnp"],"latest_commit_sha":null,"homepage":"","language":"Kotlin","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/ohmae.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,"publiccode":null,"codemeta":null}},"created_at":"2016-04-09T12:10:56.000Z","updated_at":"2024-07-24T06:19:42.000Z","dependencies_parsed_at":"2024-06-22T22:12:10.090Z","dependency_job_id":"365f0bbc-7343-48fd-9785-a01df6649fa9","html_url":"https://github.com/ohmae/mmupnp","commit_stats":null,"previous_names":[],"tags_count":50,"template":false,"template_full_name":null,"purl":"pkg:github/ohmae/mmupnp","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ohmae%2Fmmupnp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ohmae%2Fmmupnp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ohmae%2Fmmupnp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ohmae%2Fmmupnp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ohmae","download_url":"https://codeload.github.com/ohmae/mmupnp/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ohmae%2Fmmupnp/sbom","scorecard":{"id":703504,"data":{"date":"2025-08-11","repo":{"name":"github.com/ohmae/mmupnp","commit":"19ed97060e1cbda1990e747a216b94c4d3c1641b"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.7,"checks":[{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Code-Review","score":0,"reason":"Found 0/30 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/ci.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Binary-Artifacts","score":9,"reason":"binaries present in source code","details":["Warn: binary detected: gradle/wrapper/gradle-wrapper.jar:1"],"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:16: update your workflow using https://app.stepsecurity.io/secureworkflow/ohmae/mmupnp/ci.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:18: update your workflow using https://app.stepsecurity.io/secureworkflow/ohmae/mmupnp/ci.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/ci.yml:28: update your workflow using https://app.stepsecurity.io/secureworkflow/ohmae/mmupnp/ci.yml/master?enable=pin","Info:   0 out of   2 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   1 third-party GitHubAction dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}}]},"last_synced_at":"2025-08-22T05:48:34.240Z","repository_id":37677694,"created_at":"2025-08-22T05:48:34.240Z","updated_at":"2025-08-22T05:48:34.240Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28768382,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-26T03:54:34.369Z","status":"ssl_error","status_checked_at":"2026-01-26T03:54:33.031Z","response_time":59,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["android","controlpoint","java","kotlin","upnp"],"created_at":"2026-01-26T06:33:04.286Z","updated_at":"2026-01-26T06:33:04.352Z","avatar_url":"https://github.com/ohmae.png","language":"Kotlin","funding_links":[],"categories":[],"sub_categories":[],"readme":"# mmupnp\n\n[![license](https://img.shields.io/github/license/ohmae/mmupnp.svg)](./LICENSE)\n[![GitHub release](https://img.shields.io/github/release/ohmae/mmupnp.svg)](https://github.com/ohmae/mmupnp/releases)\n[![GitHub issues](https://img.shields.io/github/issues/ohmae/mmupnp.svg)](https://github.com/ohmae/mmupnp/issues)\n[![GitHub closed issues](https://img.shields.io/github/issues-closed/ohmae/mmupnp.svg)](https://github.com/ohmae/mmupnp/issues)\n[![GitHub Actions](https://github.com/ohmae/mmupnp/actions/workflows/ci.yml/badge.svg)](https://github.com/ohmae/mmupnp/actions)\n[![codecov](https://codecov.io/gh/ohmae/mmupnp/branch/develop/graph/badge.svg)](https://codecov.io/gh/ohmae/mmupnp)\n[![Maven Central](https://img.shields.io/maven-central/v/net.mm2d.mmupnp/mmupnp)](https://search.maven.org/artifact/net.mm2d.mmupnp/mmupnp)\n\nUniversal Plug and Play (UPnP) ControlPoint library for Java / Kotlin.\n\n## Feature\n\n- Pure Kotlin implementation.\n- Available in both Java/Kotlin application and Android apps.\n- Easy to use\n- High response\n\n## Requirements\n\n- kotlin 1.3 or later\n- Java 7 or later\n\n## Restrictions\n\n- This library only provides ControlPoint.\nThere is no way to make Device. If you need it, please select another library.\n\n## About the next version\n\nPlan for the next version.\n- Full support for Kotlin coroutines\n- Support for ControlPoint and Device\n- Multi-module for selectable feature\n\n## Example of use\n\nAndroid App\n\n- DMS Explorer --\n[[Google Play](https://play.google.com/store/apps/details?id=net.mm2d.dmsexplorer)]\n[[Source Code](https://github.com/ohmae/DmsExplorer)]\n\nSample App\n\n|![screenshot](readme/1.png)|![screenshot](readme/2.png)|\n|-|-|\n\n## API Documents\n\nI described Javadoc/KDoc comments. Please refer to it for more information.\n\n- [KDoc for 3.x.x](https://ohmae.github.io/mmupnp/dokka/mmupnp/) (English)\n- [Javadoc for 2.x.x](https://ohmae.github.io/mmupnp/javadoc/) (Japanese)\n\n## How to use\n\njCenter will close in May. In 3.1.3 moved to mavenCentral from jcenter.  \nPlease note that the **groupID has changed**\n\nDownload from mavenCentral. ![Maven Central](https://img.shields.io/maven-central/v/net.mm2d.mmupnp/mmupnp)\n\n```gradle\ndependencies {\n    implementation 'net.mm2d.mmupnp:mmupnp:3.1.3'\n}\n```\n\nVersions below 3.1.3 were distributed with jCenter.\nHowever, jCenter will close and old versions are not migrated to mavenCentral.\nIf you need an older version, please use the Github Pages repository.\n\n```gradle\nrepositories {\n    maven { url = URI(\"https://ohmae.github.com/maven\") }\n}\n```\n\n```gradle\ndependencies {\n    implementation 'net.mm2d.mmupnp:mmupnp:3.1.2'\n}\n```\n\n\n### Create instance\n\nTo create instance with default parameter.\n\n```kotlin\nval cp = ControlPointFactory.create()\n```\n\n`ControlPointFactory.create()` has many initialization parameters.\n\nIn addition, Builder is also available.\nPlease use them according to your preference. It is convenient when using from Java.\n\n```kotlin\nval cp = ControlPointFactory.builder()\n    .setInterfaces(interfaces)\n    .setCallbackHandler { handler.post(it) }\n    ....\n    .build()\n```\n\n#### Initialize parameter\n\nTo specify the network interface,\n\n```kotlin\nval cp = ControlPointFactory.create(\n    interfaces = listOf(NetworkInterface.getByName(\"eth0\"))\n)\n```\n\nBy default, ControlPoint will work with the dual stack of IPv4 and IPv6.\nTo operate with IPv4 only, specify the protocol,\n\n```kotlin\nval cp = ControlPointFactory.create(\n    protocol = IP_V4_ONLY\n)\n```\n\nYou can change the callback thread.\nFor example in Android, you may want to run callbacks with MainThread.\n\n```kotlin\nval cp = ControlPointFactory.create(\n    callbackHandler = { handler.post(it) }\n)\n```\n\nOr If use executor,\n\n```kotlin\nval cp = ControlPointFactory.create(\n    callbackExecutor = object : TaskExecutor{\n        private val executor = Executors.newSingleThreadExecutor()\n        override fun execute(task: Runnable): Boolean {\n            executor.execute(task)\n        }\n\n        override fun terminate() {\n            executor.shutdownNow()\n        }\n    }\n)\n```\n\nIf EventSubscription is not required,\n\n```kotlin\nval cp = ControlPointFactory.create(\n    subscriptionEnabled = false\n)\n```\n\nThe server thread for receiving events does not start and resources can be reduced.\n\nIf you want to receive multicast events,\n\n```kotlin\nval cp = ControlPointFactory.create(\n    multicastEventingEnabled = true\n)\n```\n\n**This feature is experimental.**\nCompatibility cannot be confirmed because no other implementation has been found.\n\n### Initialize and Start\n\n```kotlin\nval cp = ControlPointFactory.create().also {\n    // adding listener if necessary.\n    it.addDiscoveryListener(...)\n    it.addNotifyEventListener(...)\n    it.initialize()\n    it.start()\n}\n...\n```\n\n### M-SEARCH\n\nCall ControlPoint#search() or ControlPoint#search(String).\n\n```kotlin\ncp.search()                  // Default ST is ssdp:all\n```\n\n```kotlin\ncp.search(\"upnp:rootdevice\") // To use specific ST. In this case \"upnp:rootdevice\"\n```\n\nThese methods send one M-SEARCH packet to all interfaces.\n\n### Invoke Action\n\nFor example, to invoke \"Browse\" (ContentDirectory) action...\n\n```kotlin\nval mediaServer = cp.getDevice(UDN)           // get device by UDN\nval browse = mediaServer.findAction(\"Browse\") // find \"Browse\" action\nbrowse?.invoke(\n    mapOf(\n        \"ObjectID\" to \"0\",\n        \"BrowseFlag\" to \"BrowseDirectChildren\",\n        \"Filter\" to \"*\",\n        \"StartingIndex\" to \"0\",\n        \"RequestedCount\" to \"0\",\n        \"SortCriteria\" to \"\"\n    ),\n    onResult = {\n        val resultXml = it.get(\"Result\")// get result\n        ...\n    },\n    onError = {\n        // on error\n        ...\n    }\n)\n```\n\n### Event Subscription\n\nFor example, to subscribe ContentDirectory's events...\n\n```kotlin\n// add listener to receive event\naddEventListener( eventListener { service, seq, properties -\u003e\n    properties.forEach {\n        eventArea.text = \"${eventArea.text}${service.serviceType} : $seq : ${it.first} : ${it.second}\\n\"\n    }\n})\nval mediaServer = cp.getDevice(UDN)          // get device by UDN\nval cds = mediaServer.findServiceById(\n  \"urn:upnp-org:serviceId:ContentDirectory\") // find Service by ID\ncds.subscribe()                              // Start subscribe\n...\ncds.unsubscribe()                            // End subscribe\n```\n\nOf course, this will not work if disabled at initialization.\n\n### Stop and Terminate\n\n```kotlin\ncp.stop()\ncp.terminate()\n```\n\nIt is not possible to re-initialize.\nWhen you want to reset, try again from the constructor call.\n\n### Debug log output\n\nThis library use [log library](https://github.com/ohmae/log),\n\nTo enable debug log.\n\n```kotlin\nLogger.setLogLevel(Logger.VERBOSE)\nLogger.setSender(Senders.create())\n```\n\nIn this case output to `System.out`\n\nTo send log to a library,\neg. Simply change the output method.\n\n```kotlin\nLogger.setSender(DefaultSender.create({ level, tag, message -\u003e\n    message.split('\\n').forEach {\n        android.util.Log.println(level, tag, it)\n    }\n}))\n```\n\neg. To handle exception\n\n```kotlin\nLogger.setSender { level, message, throwable -\u003e\n    if (level \u003e= Log.DEBUG) {\n        SomeLogger.send(...)\n    }\n}\n```\n\nPlease see [log library](https://github.com/ohmae/log) for more details\n\n#### Log leveling\n\n- ERROR\n  - Log indicating the possibility of a problem occurring.\n- WARN\n  - Log indicating the possibility of a problem occurring, but also often output in normal operation.\n- INFO\n  - Logs that may help analyze the problem, but may be output in large amounts.\n- DEBUG\n  - Logs that output in normal operation for debugging.\n- VERBOSE\n  - More detail logs that output in normal operation for debugging.\n\n## Dependent OSS\n\n- [Kotlin](https://kotlinlang.org/)\n  - org.jetbrains.kotlin:kotlin-stdlib-jdk7\n- [log](https://github.com/ohmae/log)\n  - net.mm2d.log:log\n\n## Special thanks\n\nThis project is being developed with IntelliJ IDEA Ultimate,\nthanks to be approved to Jetbrains Free Open Source Licenses.\n\n[![jetbrans logo](readme/jetbrains/jetbrains.svg)](https://www.jetbrains.com/?from=mmupnp)\n\n## Author\n\n大前 良介 (OHMAE Ryosuke)\nhttp://www.mm2d.net/\n\n## License\n\n[MIT License](./LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fohmae%2Fmmupnp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fohmae%2Fmmupnp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fohmae%2Fmmupnp/lists"}