这是indexloc提供的服务,不要输入任何密码
Skip to content

Added(NsdApi): Network service discovery API. #774

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

sarg
Copy link

@sarg sarg commented May 14, 2025

Fixes #688.

@sarg
Copy link
Author

sarg commented May 14, 2025

Example usage:

# list registrations
../usr/libexec/termux-api Nsd --es command list

# register service
../usr/libexec/termux-api Nsd --es name "termux" --es type "_termux._tcp" --ei port 9090 --es command register

# unregister by id
../usr/libexec/termux-api Nsd --es id "uuid" --es command unregister

# unregister by name and type
../usr/libexec/termux-api Nsd --es name "termux" --es type "_termux._tcp" --es command unregister

The result is a json object.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

mDNS discovery support
1 participant