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

Make new_tcp/new_udp first argument more user-friendly/consistent #393

Merged
merged 1 commit into from
Oct 9, 2019

Conversation

squeek502
Copy link
Member

@squeek502 squeek502 commented Oct 9, 2019

Allows specifying the address family as a string or an integer, consistent with how its specified in other luv bindings like getaddrinfo/getnameinfo

example:

uv.new_udp("inet")
uv.new_tcp("inet6")

Allows specifying the address family as a string or an integer, consistent with how its specified in other luv bindings like getaddrinfo/getnameinfo
@squeek502 squeek502 merged commit 0082126 into luvit:master Oct 9, 2019
@SinisterRectus
Copy link
Member

Is it appropriate to use just one string here? tcp_bind and udp_bind accept a table of name = boolean fields for their flags, but I'm not familiar enough with the API right now to know if they use the same concept.

@squeek502
Copy link
Member Author

They are different. Will expand on this more in #399

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.

3 participants