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

Add regType verifier #4

Open
ruurdadema opened this issue Feb 25, 2022 · 0 comments
Open

Add regType verifier #4

ruurdadema opened this issue Feb 25, 2022 · 0 comments

Comments

@ruurdadema
Copy link
Owner

ruurdadema commented Feb 25, 2022

When registering a service, the regType must follow certain rules:

The service type followed by the protocol, separated by a dot
(e.g. "_ftp._tcp"). The service type must be an underscore, followed
by 1-15 characters, which may be letters, digits, or hyphens.
The transport protocol must be "_tcp" or "_udp".

It would be great to add a small verifier utility function to make sure users of the library (me) don't make mistakes using this.

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

1 participant