-
Notifications
You must be signed in to change notification settings - Fork 2
feat: Add IPv6 support #9
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
base: main
Are you sure you want to change the base?
Conversation
Hi @Guest0x0, please review codes. |
@Guest0x0 The latest code has been merged and conflicts have been resolved. Feel free to ask if you have any questions! |
Sorry for the late reply, I thought this was the old one. Will review soon. |
moonbitlang_get_ip_addr_detail( | ||
const struct sockaddr *src, | ||
moonbit_get_ip_name_port_cb_t *cb) | ||
{ |
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.
I think this function is unnecessary and too complex. ai_family
, port
, etc. can be accessed via simple getter functions
|
||
///| | ||
#deprecated("Use @socket.SocketAddr instead, it will be removed after 0.2.0") | ||
pub typealias SocketAddr as Addr |
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.
what's the motivation behind the renaming here
@@ -214,7 +214,7 @@ test "spawn_loop cancelled2" { | |||
log.write_object( | |||
try? @async.with_event_loop(fn(root) { | |||
let mut i = 0 | |||
root.spawn_loop(no_wait=true, allow_failure=true, retry=FixedDelay(50), fn() { | |||
root.spawn_loop(no_wait=true, allow_failure=true, retry=FixedDelay(50), () => { |
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.
irrelevant diff
Since the BTW, I think we can just keep using |
Great suggestion. I need some time to provide IPv6 support based on the latest code of the @socket package. |
@socket.Addr
with@socket.SocketAddr
)