-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
getaddrinfo, getnameinfo #23596
getaddrinfo, getnameinfo #23596
Conversation
req = Libc.malloc(_sizeof_uv_getaddrinfo) | ||
uv_req_set_data(req, C_NULL) # in case we get interrupted before arriving at the wait call | ||
status = ccall(:jl_getaddrinfo, Int32, (Ptr{Void}, Ptr{Void}, Cstring, Ptr{Void}, Ptr{Void}), | ||
eventloop(), req, host, #=service=#C_NULL, uv_jl_getaddrinfocb::Ptr{Void}) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Probably meant to take out #=service=#
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, I like doing comments of his form
if status < 0 | ||
Libc.free(req) | ||
if status == UV_EINVAL | ||
throw(ArgumentError("Invalid getaddrinfo argument")) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
probably should update all these error messages to reference getalladdrinfo
instead of getaddrinfo
(though I'm not a huge fan of the getalladdrinfo
name).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The error itself still comes from getaddrinfo
I approve of the deprecation part. |
1915931
to
45dd908
Compare
Looks like CI hit a lot of known bad tests, but is otherwise passing |
1e10468
to
63503a3
Compare
expose more system functionality, add getalladdrinfo to get a list of all address (rather than just the first) avoid making callbacks from inside the libuv event loop fix #21555
This function is the complement of getaddinfo.
Improves API coverage of basic socket infrastructure.