Skip to content
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

Service advertisement #6

Closed
techniq opened this issue Apr 8, 2015 · 10 comments
Closed

Service advertisement #6

techniq opened this issue Apr 8, 2015 · 10 comments

Comments

@techniq
Copy link
Contributor

techniq commented Apr 8, 2015

Is it possible to create a mdns advertisement similarly to how node_mdns does, or is this simply a higher abstraction for something like mdns.on('query', function(query) { ... }) that replies to specific questions of a type (SRV?)

@mafintosh
Copy link
Owner

yes you'd respond to the query event with a response message. see https://github.com/mafintosh/airpaste/blob/master/index.js#L29-L62 for an example. multicast-dns is a low-level impl of the mdns protocol. we should consider making a higher level module that wraps this to make it easier to use.

@techniq
Copy link
Contributor Author

techniq commented Apr 8, 2015

👍

Is the service type (ex. _http._tcp) as mentioned on their user guide need to be set as the name or is that part of the data.

@mafintosh
Copy link
Owner

it's usually part of the name unless your record is a PTR record that points to another name

@techniq
Copy link
Contributor Author

techniq commented Apr 9, 2015

Thanks

@techniq techniq closed this as completed Apr 9, 2015
@mafintosh
Copy link
Owner

Btw a module that would format the service types name, formatMdns.http.tcp('test') would probably be a good idea to write :)

@techniq
Copy link
Contributor Author

techniq commented Apr 9, 2015

Agreed ;)

@techniq
Copy link
Contributor Author

techniq commented Apr 9, 2015

@mafintosh
Copy link
Owner

I made this little thing now, https://github.com/mafintosh/multicast-dns-service-types

@techniq
Copy link
Contributor Author

techniq commented Apr 9, 2015

Awesome. Thanks

@CMCDragonkai
Copy link

It would be great if you could update the README.md with the ability to use the multicast-dns-service-types.

namtx pushed a commit to namtx/multicast-dns that referenced this issue May 25, 2021
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

No branches or pull requests

3 participants